Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


Nylas supports two forms of authentication:

  • Native Authentication, where the developer is responsible for building the user interface for retrieiving the appropriate credentials for a users contacts, mail and/or calendar provider. See the Nylas Native Authentication Reference Documentation for more details.

  • Nylas OAuth, where Nylas acts as an OAuth Provider that abstracts away the supported providers. This allows you to get up and running quickly without having to build potentially complex user interfaces for supporting any number of providers. See the Nylas OAuth Authentication Reference Documentation for more details.

Running the Example

  1. Clone the repository
  2. Install the dependencies by using bundle install
  3. Get a Nylas App ID and App Secret from the Nylas Dashboard
  4. Get a Google Cloud Platform Access Token by following the Nylas Google Setup Guide. Make sure to set the callback to localhost:4567/auth/google/callback.
  5. Copy .env.example to .env and set the values based upon the previous steps.
  6. Run the app web server: bundle exec dotenv ruby app.rb
  7. Login to whichever mail, contact, and calendaring providers you want using the different authentication mechanisms.
You can’t perform that action at this time.