AuthHubEventData: {
    event: "signInWithRedirect";
} | {
    data: {
        error?: AuthError;
    };
    event: "signInWithRedirect_failure";
} | {
    event: "tokenRefresh";
} | {
    data: {
        error?: AuthError;
    };
    event: "tokenRefresh_failure";
} | {
    data: string;
    event: "customOAuthState";
} | {
    data: AuthUser;
    event: "signedIn";
} | {
    event: "signedOut";
}

Type declaration

  • event: "signInWithRedirect"

Type declaration

  • data: {
        error?: AuthError;
    }
  • event: "signInWithRedirect_failure"

Type declaration

  • event: "tokenRefresh"

Type declaration

  • data: {
        error?: AuthError;
    }
  • event: "tokenRefresh_failure"

Type declaration

  • data: string
  • event: "customOAuthState"

Type declaration

Type declaration

  • event: "signedOut"