Skip to content

Commit

Permalink
chore: use in playground
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Dec 1, 2023
1 parent 81a3254 commit 7b217c7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions playground/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ import { VueFireAuthWithDependencies } from '../../src/auth'
import {
browserLocalPersistence,
browserPopupRedirectResolver,
debugErrorMap,
indexedDBLocalPersistence,
prodErrorMap,
} from 'firebase/auth'

const router = createRouter({
Expand Down Expand Up @@ -50,11 +52,16 @@ app
modules: [
VueFireAuthWithDependencies({
dependencies: {
errorMap:
process.env.NODE_ENV !== 'production'
? debugErrorMap
: prodErrorMap,
popupRedirectResolver: browserPopupRedirectResolver,
persistence: [
indexedDBLocalPersistence,
browserLocalPersistence,
// browserSessionPersistence,
// inMemoryPersistence,
],
},
}),
Expand Down

0 comments on commit 7b217c7

Please sign in to comment.