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

Get info about an access token

Link copied to clipboard

Create a grant via custom authentication

Link copied to clipboard
Link copied to clipboard

Exchange an authorization code for an access token

Link copied to clipboard

Get info about an ID token

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

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