mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-13 21:01:21 +08:00
Default expiresIn to 0
This commit is contained in:
parent
eb322cfcfc
commit
f7d4b67155
@ -48,7 +48,7 @@ function createAdapter(options: {
|
||||
}
|
||||
|
||||
async upsert(id: string, payload: AdapterPayload, expiresInSeconds: number): Promise<void> {
|
||||
await niceUpdate(this.model, id, () => ({ payload, expiresAt: new Date(Date.now() + expiresInSeconds * 1000) }));
|
||||
await niceUpdate(this.model, id, () => ({ payload, expiresAt: new Date(Date.now() + (expiresInSeconds ?? 0) * 1000) }));
|
||||
}
|
||||
|
||||
async find(id: string): Promise<AdapterPayload | undefined> {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user