mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-28 04:11:16 +01:00
Scoped OAuth 2 tokens
This commit is contained in:
5
plugins/auth-oauth2/src/util.ts
Normal file
5
plugins/auth-oauth2/src/util.ts
Normal file
@@ -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