( token: 'access' | 'refresh', duration: number, )
| 53 | } |
| 54 | |
| 55 | export function storeClientTokenExpiration( |
| 56 | token: 'access' | 'refresh', |
| 57 | duration: number, |
| 58 | ): void { |
| 59 | internals.storage.setItem( |
| 60 | `${token}TokenExpiration`, |
| 61 | (Date.now() + duration).toString(), |
| 62 | ); |
| 63 | } |
| 64 | |
| 65 | export function storeClientTokenExpirations(): void { |
| 66 | storeClientTokenExpiration('access', ACCESS_TOKEN_DURATION); |
no outgoing calls
no test coverage detected