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

    Function refreshToken

    • Refresh the access token using a refresh token

      Parameters

      • token: string

        The refresh token from a previous authentication

      Returns Promise<AuthTokens>

      New authentication tokens

      401 - Invalid or expired refresh token

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

      const newTokens = await refreshToken(storedRefreshToken);