Skip to content

Instantly share code, notes, and snippets.

@maraoz
Created June 2, 2016 03:12
Show Gist options
  • Save maraoz/980729fe357485e373abbd4f05365834 to your computer and use it in GitHub Desktop.
Save maraoz/980729fe357485e373abbd4f05365834 to your computer and use it in GitHub Desktop.
var clientID = "oC8AfNfY3JTOV5PIFkqKbIgLgzFqc0By";
var domain = "bitcorps.auth0.com";
var full = location.protocol+'//'+location.hostname+(location.port ? ':'+location.port: '');
var dict = {
title: "BitCorps",
}
var options = {
"responseType":"token",
"autoclose":true,
"closable": false,
"focusInput":false,
"popup":false,
"socialBigButtons":true,
"connections":["facebook","twitter"],
"primaryColor": '#3498db',
"dict": dict,
"icon": "/img/logo.png",
"callbackURL": full + '/auth/auth0/callback'
};
var lock = new Auth0LockPasswordless(clientID, domain);
lock.magiclink(options, function (error, email) {
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment