all
This commit is contained in:
7
Downloads/Voltaserve/webdav/src/helper/token.ts
Normal file
7
Downloads/Voltaserve/webdav/src/helper/token.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { Token } from '@/client/idp'
|
||||
|
||||
export function newExpiry(token: Token): Date {
|
||||
const now = new Date()
|
||||
now.setSeconds(now.getSeconds() + token.expires_in)
|
||||
return now
|
||||
}
|
Reference in New Issue
Block a user