Skip to content

Instantly share code, notes, and snippets.

@thearrow
Created May 11, 2017 15:15
Show Gist options
  • Save thearrow/f65ca3a2757b3d182bd708f9b0a93e68 to your computer and use it in GitHub Desktop.
Save thearrow/f65ca3a2757b3d182bd708f9b0a93e68 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Lock Test</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="http://cdn.auth0.com/js/lock/10.16.0/lock.min.js"></script>
</head>
<body>
<div id="root">
embedded area
</div>
<script>
var lock = new Auth0Lock('{key}', '{url}', {
container: 'root',
auth: {
redirectUrl: 'http://localhost:8000/login',
responseType: 'code',
params: {
scope: 'openid email' // Learn about scopes: https://auth0.com/docs/scopes
}
}
});
lock.show();
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment