Type alias AuthSession

AuthSession: {
    session: Session;
    signOut: (() => ReturnType<ScuteClient["signOut"]>);
} & ({
    isAuthenticated: false;
    isLoading: false;
    user: null;
} | {
    isAuthenticated: false;
    isLoading: true;
    user: null;
} | {
    isAuthenticated: true;
    isLoading: false;
    user: ScuteUserData;
})

Type declaration

  • session: Session
  • signOut: (() => ReturnType<ScuteClient["signOut"]>)
      • (): ReturnType<ScuteClient["signOut"]>
      • Returns ReturnType<ScuteClient["signOut"]>

Generated using TypeDoc