Prerequisites
Lit Login Server & Lit Auth Server URLs. Please refer to Auth Services section.
Sign in with Google
To sign in with Google, you can use the
authenticate function provided by the GoogleAuthenticator.Generate Auth Context
Use your PKP’s public key to create an AuthContext. This method will cache two things:
- session key pair - a temporary cryptographic key pair generated on the client side that acts as a temporary identity for the client application. It consists of:
- A public key - shared with the Lit nodes
- A secret key (private key) - kept securely on the client
- Delegation AuthSig aka. the inner auth sig - a cryptographic attestation from the Lit Protocol nodes that authorises your session key to act on behalf of your PKP.