Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,12 @@

'use strict';

// [START gae_python37_auth_sign_out]
// [START gae_python37_auth_javascript]
window.addEventListener('load', function () {
document.getElementById('sign-out').onclick = function () {
firebase.auth().signOut();
};
// [END gae_python37_auth_sign_out]

// [START gae_python37_auth_UIconfig_variable]
// FirebaseUI config.
var uiConfig = {
signInSuccessUrl: '/',
Expand All @@ -40,9 +38,7 @@ window.addEventListener('load', function () {
// Terms of service url.
tosUrl: '<your-tos-url>'
};
// [END gae_python37_auth_UIconfig_variable]

// [START gae_python37_auth_request]
firebase.auth().onAuthStateChanged(function (user) {
if (user) {
// User is signed in, so display the "sign out" button and login info.
Expand Down Expand Up @@ -73,5 +69,5 @@ window.addEventListener('load', function () {
console.log(error);
alert('Unable to log in: ' + error)
});
// [END gae_python37_auth_request]
});
// [END gae_python37_auth_javascript]