Created
November 15, 2017 16:58
-
-
Save calthoff/ef3e4d26c4997a59e5ebd56c482ec70e to your computer and use it in GitHub Desktop.
This file contains 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
extends signin-layout | |
block content | |
script(src="https://cdn.firebase.com/libs/firebaseui/2.4.1/firebaseui.js") | |
link(href='https://cdn.firebase.com/libs/firebaseui/2.4.1/firebaseui.css', rel='stylesheet') | |
script. | |
// FirebaseUI config. | |
var uiConfig = { | |
signInSuccessUrl: '/login', | |
signInOptions: [ | |
// Leave the lines as is for the providers you want to offer your users. | |
firebase.auth.EmailAuthProvider.PROVIDER_ID, | |
], | |
// Terms of service url. | |
tosUrl: '/tos' | |
}; | |
// Initialize the FirebaseUI Widget using Firebase. | |
var ui = new firebaseui.auth.AuthUI(firebase.auth()); | |
// The start method will wait until the DOM is loaded. | |
ui.start('#firebaseui-auth-container', uiConfig); | |
div(id="firebaseui-auth-container") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment