The BYoDS SDK.

Hierarchy

  • BYODS

Properties

Constructors

Methods

Properties

tokenManager: TokenManager

The token manager for the SDK.

Constructors

  • Constructs a new instance of the BYODS SDK.

    Example

    const sdk = new BYODS({ clientId: 'your-client-id', clientSecret: 'your-client-secret' });
    

    Parameters

    • config: SDKConfig

      The configuration object containing clientId and clientSecret.

    Returns BYODS

Methods

  • Verifies a JWS token using the public key.

    Returns

    A promise that resolves to an object containing the result of the verification.

    Example

    const result = await sdk.verifyJWSToken('jws-token');
    

    Parameters

    • jws: string

      The JWS token to verify.

    Returns Promise<JWSTokenVerificationResult>

  • Retrieves a client instance for a specific organization.

    Returns

    A new instance of BaseClient configured for the specified organization.

    Example

    const client = sdk.getClientForOrg('org-id');
    

    Parameters

    • orgId: string

      The unique identifier of the organization.

    Returns BaseClient