Optional errorCurrent error (if any)
Present if there was an error during authentication or token refresh.
Whether user is currently authenticated
Whether auth state is still being determined
True during initial authentication check or token refresh. Useful for showing loading spinners.
Optional userCurrent user info (if authenticated)
Undefined if not authenticated or still loading.
Authentication state snapshot
Represents the current authentication state of the application. This is useful for components that need to react to auth state changes.
Example