@archastro/sdk
    Preparing search index...

    Type Alias AppPlatformClient

    AppPlatformClient: PlatformClient & {
        passwordless: PasswordlessAuth;
        createSocket(socketConfig?: Omit<SocketConfig, "params">): Socket;
        getSession(): AppSession | null;
        restore(): Promise<AppSession | null>;
        signIn(
            tokens: AuthTokens,
            user?:
                | {
                    alias?: string
                    | null;
                    email?: string | null;
                    id: string;
                    name?: string | null;
                    org?: string | null;
                    org_name?: string | null;
                    org_role?: string | null;
                }
                | null,
        ): Promise<AppSession>;
        signOut(): Promise<void>;
    }

    PlatformClient with app-session capabilities. Still a real PlatformClient — all generated resources work.

    Type Declaration

    • Readonlypasswordless: PasswordlessAuth
    • createSocket: function
    • getSession: function
    • restore: function
    • signIn: function
      • Apply tokens from a login/verify response and persist.

        Parameters

        • tokens: AuthTokens
        • Optionaluser:
              | {
                  alias?: string
                  | null;
                  email?: string | null;
                  id: string;
                  name?: string | null;
                  org?: string | null;
                  org_name?: string | null;
                  org_role?: string | null;
              }
              | null

        Returns Promise<AppSession>

    • signOut: function