submitJwt

Authenticates using a custom issued JWT

Import

1import { AlchemySignerWebClient } from "@account-kit/signer";

Usage

1import { AlchemySignerWebClient } from "@account-kit/signer";
2
3const client = new AlchemySignerWebClient({
4 connection: {
5 apiKey: "your-api-key",
6 },
7 iframeConfig: {
8 iframeContainerId: "signer-iframe-container",
9 },
10});
11
12const account = await client.submitJwt({
13 jwt: "custom-issued-jwt",
14 authProvider: "auth-provider-name",
15});

Parameters

args

Omit<JwtParams, "targetPublicKey"> The parameters for the JWT request, excluding the target public key.

Returns

Promise<{ bundle: string }> A promise that resolves to an object containing the credential bundle.