Auth

public final class Auth

A collection of authentication related API endpoints

These endpoints allow for various functionality related to authentication. Also contains the Grants API and collection of provider API endpoints.

Parameters

client

The configured Nylas API client

Constructors

Link copied to clipboard
public Auth Auth(NylasClient client)

Functions

Link copied to clipboard
public final Response<TokenInfoResponse> accessTokenInfo(String accessToken)

Get info about an access token

Link copied to clipboard

Create a grant via custom authentication

Link copied to clipboard

Detect provider from email address

Link copied to clipboard

Exchange an authorization code for an access token

Link copied to clipboard
public final Response<TokenInfoResponse> idTokenInfo(String idToken)

Get info about an ID token

Link copied to clipboard

Refresh an access token

Link copied to clipboard
public final Boolean revoke(String token)

Revoke a token (and the grant attached to the token)

Link copied to clipboard
public final String urlForAdminConsent(UrlForAuthenticationConfig config, String credentialId)

Build the URL for admin consent authentication for Microsoft

Link copied to clipboard

Build the URL for authenticating users to your application with OAuth 2.0

Link copied to clipboard

Build the URL for authenticating users to your application with OAuth 2.0 and PKCE