Login users client-side to create unique user sessions.

  • Works with providers "Google" and "GitHub" but also "Firebase" (see below).
  • Must be called to use models and data modules client-side.
export declare function login(input: LoginFunctionInput, projectOptions: {
    project: string;
    endpoint: string;
}): Promise<void>;


type SimpleProvider = "github" | "google";
type LoginWithFirebaseInput = {
    token: string;
    provider: "firebase";
type LoginFunctionInput = SimpleProvider | {
    provider: SimpleProvider;
} | LoginWithFirebaseInput;