User Types
LogtoUser
Represents an authenticated user in the application.Authentication Types
AuthMiddleware
Defines the authentication requirement level for a page or route.'auth'- Requires authenticated user'guest'- Allows unauthenticated access (guest mode)undefined- No middleware applied
NavigationOptions
Options for controlling navigation behavior.AuthOptions
Configuration options for authentication behavior and redirects.Options for controlling navigation behavior
Context Types
AuthContextType
The authentication context type provided byuseAuth() hook.
Function to initiate sign-in flow
callbackUrl- URL to redirect to after successful sign-inusePopup- Whether to use popup sign-in instead of redirect
Function to sign out the current user
callbackUrl- URL to redirect to after sign-outglobal- Whether to perform global sign-out across all sessions
Component Props
AuthProviderProps
Props for theAuthProvider component.
Custom navigation function (e.g., for React Router integration)
CallbackPageProps
Props for theCallbackPage component.