method IJWTKeyManager.generateKeyPair
IJWTKeyManager.generateKeyPair(algorithm: JWTAlgorithm): Promise<JWTKeyConfig>

Generates a new key pair for JWT operations

Parameters

algorithm: JWTAlgorithm
  • The algorithm to generate keys for

Return Type

Promise<JWTKeyConfig>

Promise resolving to key configuration

Usage

import { type IJWTKeyManager } from ".";