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
Functions
Link copied to clipboard
public final Response<TokenInfoResponse> accessTokenInfo(String accessToken, RequestOverrides overrides)
Get info about an access token
Link copied to clipboard
public final Response<Grant> customAuthentication(CreateGrantRequest requestBody, RequestOverrides overrides)
Create a grant via custom authentication
Link copied to clipboard
public final Response<ProviderDetectResponse> detectProvider(ProviderDetectParams params, RequestOverrides overrides)
Detect provider from email address
Link copied to clipboard
public final CodeExchangeResponse exchangeCodeForToken(CodeExchangeRequest request, RequestOverrides overrides)
Exchange an authorization code for an access token
Link copied to clipboard
Get info about an ID token
Link copied to clipboard
public final CodeExchangeResponse refreshAccessToken(TokenExchangeRequest request, RequestOverrides overrides)
Refresh an access token
Link copied to clipboard
Revoke a token (and the grant attached to the token)
Link copied to clipboard
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