File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed
Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ export const AuthProvider = ({ children }: { children: React.ReactNode }) => {
4444 initState ( {
4545 user : {
4646 id : user . uid ,
47- connectedAt : new Date ( ) ,
47+ connectedAt : new Date ( ) . toISOString ( ) ,
4848 name : user . displayName || 'Anonymous' ,
4949 imageURL : user . photoURL || '' ,
5050 } ,
@@ -156,12 +156,13 @@ export const AuthProvider = ({ children }: { children: React.ReactNode }) => {
156156 if ( isConnected ) {
157157 toast ( 'Session expired, please reconnect' , { theme : 'dangerToast' } )
158158
159- Sentry . captureMessage ( `Session expired` , {
160- level : 'info' ,
161- extra : {
162- fbID : user ?. id || 'anonymous' ,
163- connectedAt : user ?. connectedAt ?. toISOString ( ) ,
164- } ,
159+ Sentry . withScope ( ( scope ) => {
160+ scope . setContext ( 'auth_debug' , {
161+ connectedAt : user ?. connectedAt || 'unknown' ,
162+ userId : user ?. id || 'anonymous' ,
163+ } )
164+
165+ Sentry . captureMessage ( `Session expired` )
165166 } )
166167 }
167168
You can’t perform that action at this time.
0 commit comments