File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -74,14 +74,18 @@ export function AuthSessionProvider({
7474 email : user . email ?? null ,
7575 isAuthenticated : ! user . isAnonymous ,
7676 } ) ;
77- setUserCookieSession ( ) . catch ( ( ) => { } ) ;
77+ setUserCookieSession ( ) . catch ( ( ) => {
78+ console . error ( 'Failed to establish session cookie' ) ;
79+ } ) ;
7880
7981 // Check every 5 minutes; the cookie lasts 60 minutes, so this ensures renewal well before expiry
8082 // If the cookie is not expired, it will return early and skip the POST
8183 // The token will refresh 5 minutes before expiry which is why the 5 minute interval is used here.
8284 intervalRef . current = setInterval (
8385 ( ) => {
84- setUserCookieSession ( ) . catch ( ( ) => { } ) ;
86+ setUserCookieSession ( ) . catch ( ( ) => {
87+ console . error ( 'Failed to establish session cookie' ) ;
88+ } ) ;
8589 } ,
8690 5 * 60 * 1000 ,
8791 ) ; // 5 minutes
You can’t perform that action at this time.
0 commit comments