validateToken()
validateToken():
Promise<boolean>
Defined in: packages/core/src/index.ts:270
Validate the current access token
Returns
Promise<boolean>
true if the token is valid, false otherwise
Example
import { validateToken } from "@cpod/sdk";
const isValid = await validateToken();
if (!isValid) {
// Token expired, need to refresh
}