Seed Project

Download a sample project. You will need to login for the sample to be preconfigured.

System Requirements

This tutorial and seed project have been tested with the following:

  • NodeJS 5.0.0
  • Electron 1.4.3

1. Setting up the Callback URL

Go to the Application Settings section in your Auth0 dashboard and make sure that the Allowed Callback URLs field contains the following values:

https://YOUR_NAMESPACE/mobile, file:///

2. Add the Lock Widget

Add Auth0Lock to your index.html file and set the viewport.

<!-- Auth0 Lock script -->
<script src="https://cdn.auth0.com/js/lock/10.4/lock.min.js"></script>

<!-- Setting the right viewport -->
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />

Note: Some functionality provided by Lock is meant for regular web browsers. For best results, add auth: { sso: false } to your Lock configuration options.

4. Follow the Front End Quickstarts

You can use any front end technology you like in your Electron application. Follow the quickstart guide specific to your use case.

Try Auth0 for FREECreate free Account