Created
December 31, 2018 23:05
-
-
Save natebass/f41fa0babe4b4811be9673661db72ca5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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