Skip to content

describeAccessToken — @gj-kit/expo-auth

A public function from @gj-kit/expo-auth. The signature below is taken directly from the 0.1.1 release declaration.

import { describeAccessToken } from '@gj-kit/expo-auth';
/**
* Token summary for logging/telemetry — contains not a single byte of the token itself (§4.2).
* `expiresAtEpochSeconds` comes from {@link decodeJwtExpiryEpochSeconds} and shares its
* unverified-decode caveat.
*/
declare function describeAccessToken(accessToken: string): {
readonly length: number;
readonly expiresAtEpochSeconds: number | null;
};

This declaration is the source of truth for parameters, optionality, generics, return values, and public union/type contracts. Check the package golden path and this subpath’s import conditions for required environment, permission, and error boundaries before calling it.

  • Package: @gj-kit/expo-auth
  • Version: 0.1.1
  • Public entry: .
  • Source: GitHub