You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Simplify authentication state management with eagerAuth (#12)
* Simplify authentication state management
Remove dependency on accessToken presence for determining authentication state.
With eagerAuth enabled, we can rely solely on user presence to determine if
authenticated, eliminating race conditions between user and token availability.
Changes:
- Remove accessToken from useAccessToken destructuring
- Determine isAuthenticated based only on !!user
- Simplify the authentication flow by removing unnecessary token checks
This addresses the issues raised in PR #10 about authentication reliability,
particularly in production environments.
* update to authkit-nextjs v2.7.1
0 commit comments