Edits history of script submission #320 for ' Sign in (surrealdb)'

  • deno
    One script reply has been approved by the moderators
    Ap­pro­ved
    import Surreal from "https://deno.land/x/[email protected]/mod.ts";
    
    /**
     * @returns The authenication token.
     */
    export async function main(
      url: string,
      user: string,
      password: string,
      namespace?: string,
      database?: string,
      scope?: string,
    ) {
      const client = new Surreal(url);
      return await client.signin({
        user,
        pass: password,
        NS: namespace,
        DB: database,
        SC: scope,
      });
    }
    

    Submitted by hugo697 386 days ago

  • deno
    import Surreal from "https://deno.land/x/[email protected]/mod.ts";
    
    /**
     * @returns The authenication token.
     */
    export async function main(
      url: string,
      user: string,
      password: string,
      namespace?: string,
      database?: string,
      scope?: string,
    ) {
      const client = new Surreal(url);
      return await client.signin({
        user,
        pass: password,
        NS: namespace,
        DB: database,
        SC: scope,
      });
    }
    

    Submitted by admin 1018 days ago

  • deno
    import Surreal from 'https://deno.land/x/[email protected]/mod.ts'
    
    /**
     * @returns The authenication token.
     */
    export async function main(
      url: string,
      user: string,
      password: string,
      namespace?: string,
      database?: string,
      scope?: string,
    ) {
      const client = new Surreal(url)
      return await client.signin({
        user,
        pass: password,
        NS: namespace,
        DB: database,
        SC: scope
      })
    }
    

    Submitted by adam186 1144 days ago