Skip to content

Commit

Permalink
Remove client-side check from browser index entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
kmjennison committed Dec 31, 2023
1 parent 997edc2 commit 6e20190
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import 'firebase/app'
import 'firebase/auth'
import initFirebaseClientSDK from 'src/initFirebaseClientSDK'
import isClientSide from 'src/isClientSide'
import initCommon, { Init } from 'src/initCommon'
import type { GetUserFromCookies } from './getUserFromCookies'
import type { SetAuthCookies } from './setAuthCookies'
Expand All @@ -15,11 +14,7 @@ export * from 'src/AuthAction'

export const init: Init = (config) => {
initCommon(config)

// On the client side, initialize the Firebase JS SDK.
if (isClientSide()) {
initFirebaseClientSDK()
}
initFirebaseClientSDK()
}

export const getUserFromCookies: GetUserFromCookies = () => {
Expand Down

0 comments on commit 6e20190

Please sign in to comment.