Skip to content

Instantly share code, notes, and snippets.

@MarwanRefaat
Last active December 6, 2021 07:33
Show Gist options
  • Save MarwanRefaat/6124811fd42fae83bee3466edb3ee68b to your computer and use it in GitHub Desktop.
Save MarwanRefaat/6124811fd42fae83bee3466edb3ee68b to your computer and use it in GitHub Desktop.
GET /authorize
// Script uses auth0.js. See Remarks for details.
<script src="https://cdn.auth0.com/js/auth0/9.11/auth0.min.js"></script>
<script type="text/javascript">
// Initialize app
var webAuth = new auth0.WebAuth({
domain: 'gamefi.us.auth0.com',
clientID: 'srre4hfqvA16NoefiPHbTSvApJKBw2gY'
});
// Trigger login with google
webAuth.authorize({
connection: 'google-oauth2'
});
// Trigger login with github
webAuth.authorize({
connection: 'github'
});
// Trigger login popup with twitter
webAuth.popup.authorize({
connection: 'twitter'
});
</script>
GET https://gamefi.us.auth0.com/authorize?
response_type=code|token&
client_id=srre4hfqvA16NoefiPHbTSvApJKBw2gY&
connection=CONNECTION&
redirect_uri=undefined&
state=STATE&
ADDITIONAL_PARAMETERS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment