Skip to content

Instantly share code, notes, and snippets.

@thivi
Last active November 12, 2021 21:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thivi/ddc20195835cde956783933631c11888 to your computer and use it in GitHub Desktop.
Save thivi/ddc20195835cde956783933631c11888 to your computer and use it in GitHub Desktop.
window.onload = function () {
auth.initialize({
signInRedirectURL: "https://localhost:5000",
signOutRedirectURL: "https://localhost:5000",
clientID: "<client-id>",
serverOrigin: "https://api.asgardeo.io/t/<tenant>",
scope: ["openid", "profile"]
});
auth.signIn({ callOnlyOnRedirect: true });
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment