mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-11-29 19:52:54 +01:00
Scoped OAuth 2 tokens
This commit is contained in:
1 parent
a258a80fbd
commit
20681e5be3
14 files changed
+232
-86
No files matched your search
@@ -0,0 +1,5 @@
|
||||
import type { AccessToken } from './store';
|
||||
|
||||
export function isTokenExpired(token: AccessToken) {
|
||||
return token.expiresAt && Date.now() > token.expiresAt;
|
||||
}
|
||||
Reference in new issue
Block a user