• Preparing search index...
  • The search index is not available
@aptos-labs/ts-sdk - v1.38.0
  • @aptos-labs/ts-sdk
  • fetchJWK

Function fetchJWK

  • fetchJWK(
        args: {
            aptosConfig: AptosConfig;
            kid: string;
            publicKey: KeylessPublicKey | FederatedKeylessPublicKey;
        },
    ): Promise<MoveJWK>

    Fetches the JWK from the issuer's well-known JWKS endpoint.

    Parameters

    • args: {
          aptosConfig: AptosConfig;
          kid: string;
          publicKey: KeylessPublicKey | FederatedKeylessPublicKey;
      }
      • aptosConfig: AptosConfig
      • kid: string

        The kid of the JWK to fetch

      • publicKey: KeylessPublicKey | FederatedKeylessPublicKey

        The keyless public key which contains the issuer the address to fetch the JWK from (0x1 if not federated).

    Returns Promise<MoveJWK>

    A JWK matching the kid in the JWT header.

    Throws

    If the JWK cannot be fetched

    • Defined in src/core/crypto/keyless.ts:517

Settings

Member Visibility
@aptos-labs/ts-sdk - v1.38.0
  • Loading...