potential fix for login not working on production
This commit is contained in:
parent
17b114bca1
commit
9cf80552e3
1 changed files with 6 additions and 1 deletions
|
@ -25,6 +25,9 @@ app.use(
|
|||
secret: secret.session,
|
||||
resave: true,
|
||||
saveUninitialized: false,
|
||||
cookie: {
|
||||
httpOnly: false,
|
||||
},
|
||||
})
|
||||
)
|
||||
app.use(passport.initialize())
|
||||
|
@ -34,7 +37,9 @@ dataRoutes(app)
|
|||
authRoutes(app)
|
||||
|
||||
admin.initializeApp({
|
||||
credential: admin.credential.cert(serviceAccountKey as admin.ServiceAccount),
|
||||
credential: admin.credential.cert(
|
||||
serviceAccountKey as admin.ServiceAccount
|
||||
),
|
||||
})
|
||||
|
||||
export const api = https.onRequest(app)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue