@cpod/sdk - v0.2.7
    Preparing search index...

    Function validateToken

    • Validate the current access token

      Returns Promise<boolean>

      true if the token is valid, false otherwise

      import { validateToken } from "@cpod/sdk";

      const isValid = await validateToken();
      if (!isValid) {
      // Token expired, need to refresh
      }