@nevermined-io/payments
    Preparing search index...

    Function decodeAccessToken

    • Decode an x402 access token to extract subscriber address and plan ID. The x402 access token is a base64-encoded JSON document containing session key information and permissions.

      Parameters

      • accessToken: string

        The x402 access token to decode (base64-encoded JSON)

      Returns Record<string, any> | null

      The decoded token data or null if invalid