The redirect URI that Lit's login server should send the user back to
Relay server to subsidize minting of PKPs
Validate the URL parameters returned from Lit's login server and return the authentication data
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 pkp contract
Auth method object
Auth method object
Get auth method id that can be used to look up and interact with PKPs associated with the given auth method
Auth method object
Fetch PKPs associated with given auth method type and id from pkp contract
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
Static
auth
Client to connect to Lit nodes