Skip to content

Instantly share code, notes, and snippets.

@calthoff
Created November 15, 2017 16:58
Show Gist options
  • Save calthoff/ef3e4d26c4997a59e5ebd56c482ec70e to your computer and use it in GitHub Desktop.
Save calthoff/ef3e4d26c4997a59e5ebd56c482ec70e to your computer and use it in GitHub Desktop.
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