Authenticate with a WebAuthn credential and return the relevant 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
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
Generate registration options for the browser to pass to a supported authenticator
Optional
username: stringUsername to register credential with
Mint PKP with verified registration data
Registration options to pass to the authenticator
Optional
customArgs: MintRequestBodyExtra data to overwrite default params
Static
authOptional
rpName: stringStatic
get
Client to connect to Lit nodes