Abstract
Relay server to subsidize minting of PKPs
Endpoint to interact with a blockchain network. Defaults to the Lit Chronicle.
Abstract
authenticateAuthenticate the user based on the provider-specific implementation and return the relevant authentication data
Type representing the specific options for the authenticate method
Optional
options: TOptional parameters that vary based on the provider
Optional
urlCheckCallback: ((currentUrl: string, redirectUri: string) => boolean)Optional callback to handle authentication data or errors
Authenticates an auth Method for claiming a Programmable Key Pair (PKP). Uses the underyling litNodeClient instance to authenticate a given auth method
Calculates a public key for a given key identifier
which is an Auth Method Identifier
the Auth Method Identifier is a hash of a user identifier and app idendtifer.
These identifiers are specific to each auth method and will derive the public key protion of a pkp which will be persited
when a key is claimed.
Auth Method | User ID | App ID |
---|---|---|
Google OAuth | token sub |
token aud |
Discord OAuth | user id | client app identifier |
Stytch OTP | token sub |
token aud |
Fetch PKPs associated with given auth method from relay server
Auth method object
Abstract
getGet auth method id that can be used to look up and interact with PKPs associated with the given auth method
Auth method object
Optional
options: anyOptional parameters that vary based on the provider
Generate session sigs for given auth method and PKP
Mint a new PKP for the given auth method through the relay server
Auth method object
Optional
customArgs: MintRequestBodyExtra data to overwrite default params
Protected
prepareGenerate request body to fetch PKPs using auth method info via relay server
Data for fetching PKP
Protected
prepareGenerate request body for minting PKP using auth methods via relay server
Data for minting PKP
Optional
customArgs: MintRequestBodyExtra data to overwrite default params
Generate request data for minting and fetching PKPs via relay server
Auth method obejct
Generated using TypeDoc
Client to connect to Lit nodes