Skip to content

Commit

Permalink
Bring back firebase client app name
Browse files Browse the repository at this point in the history
  • Loading branch information
MvRemmerden committed Jun 29, 2024
1 parent 6754eed commit b47089b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/createUser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { DecodedIdToken } from 'firebase-admin/auth'
import isClientSide from 'src/isClientSide'
import { Claims, filterStandardClaims } from 'src/claims'
import { User } from './sharedTypes'
import { getConfig } from './config'

interface UserDeserialized {
id?: string
Expand Down Expand Up @@ -104,8 +105,9 @@ const createUser = ({
const { getApp } = require('firebase/app')
// eslint-disable-next-line global-require, @typescript-eslint/no-var-requires
const { getAuth, signOut } = require('firebase/auth')
const { firebaseClientAppName } = getConfig()

signOutFunc = async () => signOut(getAuth(getApp()))
signOutFunc = async () => signOut(getAuth(getApp(firebaseClientAppName)))
}

/**
Expand Down

0 comments on commit b47089b

Please sign in to comment.