Skip to content

Commit

Permalink
Remove debug commands
Browse files Browse the repository at this point in the history
  • Loading branch information
MvRemmerden committed Jun 28, 2024
1 parent d09ad98 commit d23c46c
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/useFirebaseUser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,16 +178,13 @@ const useFirebaseUser = () => {
// https://firebase.google.com/docs/reference/js/firebase.auth.Auth#onidtokenchanged
try {

Check failure on line 179 in src/useFirebaseUser.ts

View workflow job for this annotation

GitHub Actions / build

Unnecessary try/catch wrapper
const { firebaseClientAppName } = getConfig()
logDebug(`[withUser] firebaseClientAppName |${firebaseClientAppName}|`)
const app = getApp(firebaseClientAppName)
logDebug('[withUser] App loaded', app)
const unsubscribe = onIdTokenChanged(getAuth(app), onIdTokenChange)
return () => {
unsubscribe()
isCancelled = true
}
} catch (error) {
logDebug('[withUser] init error', error)
throw error
}
}, [])
Expand Down

0 comments on commit d23c46c

Please sign in to comment.