(token: 'access' | 'refresh')
| 20 | } |
| 21 | |
| 22 | export function isClientTokenValid(token: 'access' | 'refresh'): boolean { |
| 23 | const expirationDate = getClientTokenExpirationDate(token); |
| 24 | |
| 25 | if (expirationDate == null) { |
| 26 | return false; |
| 27 | } |
| 28 | |
| 29 | return isTokenValid(expirationDate); |
| 30 | } |
| 31 | |
| 32 | export function isClientTokenExpiring( |
| 33 | token: 'access' | 'refresh', |
no test coverage detected