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

Detect provider from email address

Link copied to clipboard

Exchange an authorization code for an access token

Link copied to clipboard
public final Grants grants()

Access the Grants API

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