Authenticate a user with a signature.
Authentication request
Fetch current active authentication session.
⚠️ Requires authenticated LensClient.
ApprovedAuthenticationFragment
const result = await client.authentication.fetch();
Fetch all active authentication sessions.
⚠️ Requires authenticated LensClient.
Optional
request: ApprovedAuthenticationRequestRequest object for the query
ApprovedAuthenticationFragment wrapped in PaginatedResult
const result = await client.authentication.fetchAll();
Generate a challenge for a wallet or profile to sign.
Challenge request
A challenge string
Get the access token.
A Result with the access token or possible error scenarios
Get the identity token.
A Result with the identity token or possible error scenarios
Get the refresh token.
A Result with the refresh token or possible error scenarios
Revoke an active authentication session.
⚠️ Requires authenticated LensClient.
Request object for the mutation
PromiseResult with void
await client.authentication.revoke({
authorizationId: '8a905b63-1236-4d69-8969-95e93b7dd35d',
});
Upgrade the credentials from wallet only to profile authentication.
⚠️ Requires authenticated LensClient with wallet only.
await client.authentication.upgradeCredentials();
Check the validity of the provided token.
Access token as a string
Whether the provided token is valid
Use with VerifyRequest instead.
Check the validity of the provided token.
Verify request
Whether the provided token is valid
Authentication for Lens API.