Hierarchy (view full)

Constructors

Properties

litNodeClient: LitNodeClient

Client to connect to Lit nodes

redirectUri: string

The redirect URI that Lit's login server should send the user back to

relay: IRelay

Relay server to subsidize minting of PKPs

Methods

  • 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

    Parameters

    Returns Promise<string>

  • Redirect user to the Lit's Google login page

    Parameters

    • Optionalcallback: ((url: string) => void)

      Optional callback to handle login URL

        • (url): void
        • Parameters

          • url: string

          Returns void

    Returns Promise<void>

    • Redirects user to Lit login page