Types
BeforeAuthCallback
Learn more about the BeforeAuth custom callback.type BeforeAuthCallback = (email: string) => boolean;
OnSuccessCallback
Learn more about the OnSuccess custom callback.type OnSuccessCallback = (authResult: authResult) => void;
OnEventCallback
Learn more about the OnEvent custom callback.OnEventCallback = (event: PassageElementEvent) => void;
TokenStore
Learn how to create a custom token store.type TokenStore = () => TokenStore;
PassageSignOutFn
type PassageSignOutFn = () => Promise<boolean>;
GetCurrentUserFn
type GetCurrentUserFn = () => User | undefined;
GetCurrentSessionFn
type GetCurrentSessionFn = () => Session | undefined;