naystack - v1.5.10
    Preparing search index...

    Interface InitGoogleAuthOptions

    Options for initializing Google OAuth via initGoogleAuth.

    interface InitGoogleAuthOptions {
        errorRedirectURL?: string;
        getUserIdFromEmail: (email: Schema$Userinfo) => Promise<number | null>;
        redirectURL: string;
    }
    Index

    Properties

    errorRedirectURL?: string

    Optional; where to redirect on error. Defaults to redirectURL if omitted.

    getUserIdFromEmail: (email: Schema$Userinfo) => Promise<number | null>

    Given Google userinfo (email, name, picture, etc.), resolves to your app's user id. Return null if the user should not be authenticated.

    redirectURL: string

    Where to redirect after successful Google auth (e.g. "/dashboard").