Skip to content

Commit

Permalink
fix(auth): interact redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
sabineschaller committed Aug 1, 2024
1 parent c61e03e commit 22e5858
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/auth/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,13 @@ export class App {
signed: true,
store: {
async get(key) {
return await redis.hgetall(key)
const s = await redis.hgetall(key)
const session = {
nonce: s.nonce,
_expire: Number(s._expire),
_maxAge: Number(s._maxAge)
}
return session
},
async set(key, session) {
// Add a delay to cookie age to ensure redis record expires after cookie
Expand Down

0 comments on commit 22e5858

Please sign in to comment.