File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
appengine/standard_python37/building-an-app/building-an-app-3/static Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change 1515
1616'use strict' ;
1717
18- // [START gae_python37_auth_sign_out ]
18+ // [START gae_python37_auth_javascript ]
1919window . addEventListener ( 'load' , function ( ) {
2020 document . getElementById ( 'sign-out' ) . onclick = function ( ) {
2121 firebase . auth ( ) . signOut ( ) ;
2222 } ;
23- // [END gae_python37_auth_sign_out]
2423
25- // [START gae_python37_auth_UIconfig_variable]
2624 // FirebaseUI config.
2725 var uiConfig = {
2826 signInSuccessUrl : '/' ,
@@ -40,9 +38,7 @@ window.addEventListener('load', function () {
4038 // Terms of service url.
4139 tosUrl : '<your-tos-url>'
4240 } ;
43- // [END gae_python37_auth_UIconfig_variable]
4441
45- // [START gae_python37_auth_request]
4642 firebase . auth ( ) . onAuthStateChanged ( function ( user ) {
4743 if ( user ) {
4844 // User is signed in, so display the "sign out" button and login info.
@@ -73,5 +69,5 @@ window.addEventListener('load', function () {
7369 console . log ( error ) ;
7470 alert ( 'Unable to log in: ' + error )
7571 } ) ;
76- // [END gae_python37_auth_request]
7772} ) ;
73+ // [END gae_python37_auth_javascript]
You can’t perform that action at this time.
0 commit comments