const litAuthProvider = new LitAuthProvider(
stytchProjectId: string,
baseUrl: string,
walletType?: WalletType,
aa?: AaDetails
)
async authenticateWithStytch(
accessToken: string,
userId?: string,
method?: string
): Promise<AuthMethod | undefined>
export interface AuthMethod {
authMethodType: number;
accessToken: string;
}
async mintPKP(authMethod: AuthMethod): Promise<IRelayPKP>
export interface IRelayPKP {
tokenId: string;
publicKey: string;
ethAddress: string;
}
async getPKPs(authMethod: AuthMethod): Promise<IRelayPKP[]>
export interface IRelayPKP {
tokenId: string;
publicKey: string;
ethAddress: string;
}
async initSession(authMethod: AuthMethod, pkp: IRelayPKP, chain: string)