Skip to content

Instantly share code, notes, and snippets.

@natebass
Created December 31, 2018 23:05
Show Gist options
  • Select an option

  • Save natebass/f41fa0babe4b4811be9673661db72ca5 to your computer and use it in GitHub Desktop.

Select an option

Save natebass/f41fa0babe4b4811be9673661db72ca5 to your computer and use it in GitHub Desktop.
var uiConfig = {
callbacks: {
signInSuccessWithAuthResult: function (authResult, redirectUrl) {
// User successfully signed in.
// Return type determines whether we continue the redirect automatically
// or whether we leave that to developer to handle.
return true;
},
uiShown: function () {
document.getElementById('loader').style.display = 'none';
}
},
signInFlow: 'redirect',
signInSuccessUrl: '<url-to-redirect-to-on-success>',
signInOptions: [{
provider: firebase.auth.GithubAuthProvider.PROVIDER_ID,
scopes: [
'gist'
],
}],
tosUrl: '<your-tos-url>',
privacyPolicyUrl: '<your-privacy-policy-url>'
};
ui.start('#firebaseui-auth-container', uiConfig);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment