This repo contains code samples for the Passwordless Login with Facebook Account Kit article from the Auth0 blog. There are two NodeJs apps, one for Facebook Account Kit and the other for Auth0 Passwordless showing how you can add passwordless authentication in each.
Facebook Account Kit requires that you have a Facebook Developer Account with a registered app that has Account Kit enabled.
- Run
npm install
to install dependencies (NodeJs is a prerequisite) - Open the
server.js
file - Replace
YOUR_FACEBOOK_APP_ID
andYOUR_ACCOUNT_KIT_SECRET
with your credentials - Open the
login.html
file in the/dist
directory - Replace
YOUR_FACEBOOK_APP_ID
with your credentials - Run the app executing
node server
- Navigate to
localhost:3000
to see the app
Auth0 Passwordless requires that you have an Auth0 account. Sign up for free if you don't.
- Run
npm install
to install dependencies (NodeJs is a prerequisite) - Open the
login.html
andcallback.html
pages - Replace
AUTH0_CLIENT_ID
,AUTH0_DOMAIN
andAUTH0_CALLBACKURL
with your credentials in each of the pages - Run the app by executing
node server
from the terminal - Navigate to
localhost:3000
to see the app
Auth0 helps you to:
- Add authentication with multiple authentication sources, either social like Google, Facebook, Microsoft Account, LinkedIn, GitHub, Twitter, Box, Salesforce, amont others, or enterprise identity systems like Windows Azure AD, Google Apps, Active Directory, ADFS or any SAML Identity Provider.
- Add authentication through more traditional username/password databases.
- Add support for linking different user accounts with the same user.
- Support for generating signed Json Web Tokens to call your APIs and flow the user identity securely.
- Analytics of how, when and where users are logging in.
- Pull data from other sources and add it to the user profile, through JavaScript rules.
- Go to Auth0 and click Sign Up.
- Use Google, GitHub or Microsoft Account to login.
If you have found a bug or if you have a feature request, please report them at this repository issues section. Please do not report security vulnerabilities on the public GitHub issue tracker. The Responsible Disclosure Program details the procedure for disclosing security issues.