Created
April 4, 2020 17:08
-
-
Save ralexrdz/dcc67f2d617c0800ecbe20821838fae8 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Hospital Firebase</title> | |
<!-- ******************************************************************************************* | |
* TODO(DEVELOPER): Paste the initialization snippet from: | |
* Firebase Console > Overview > Add Firebase to your web app. * | |
***************************************************************************************** --> | |
<script src="https://www.gstatic.com/firebasejs/6.3.4/firebase-app.js"></script> | |
<script src="https://www.gstatic.com/firebasejs/6.3.4/firebase-auth.js"></script> | |
<script src="https://www.gstatic.com/firebasejs/ui/4.5.0/firebase-ui-auth.js"></script> | |
<link type="text/css" rel="stylesheet" href="https://www.gstatic.com/firebasejs/ui/4.5.0/firebase-ui-auth.css" /> | |
<script type="text/javascript"> | |
const apiKey = 'AIzaSyCnM5BOSoCyIR6S-I-bXqQC0IcZmIO-LSw' | |
const projectId = 'hospital-bedu-bass' | |
firebase.initializeApp( | |
{ | |
apiKey, | |
projectId | |
} | |
); | |
// FirebaseUI config. | |
var uiConfig = { | |
signInSuccessUrl: './hospital.html', | |
signInOptions: [ | |
// Leave the lines as is for the providers you want to offer your users. | |
// firebase.auth.GoogleAuthProvider.PROVIDER_ID, | |
// firebase.auth.FacebookAuthProvider.PROVIDER_ID, | |
// firebase.auth.TwitterAuthProvider.PROVIDER_ID, | |
// firebase.auth.GithubAuthProvider.PROVIDER_ID, | |
firebase.auth.EmailAuthProvider.PROVIDER_ID, | |
// firebase.auth.PhoneAuthProvider.PROVIDER_ID, | |
// firebaseui.auth.AnonymousAuthProvider.PROVIDER_ID | |
], | |
// tosUrl and privacyPolicyUrl accept either url string or a callback | |
// function. | |
// Terms of service url/callback. | |
tosUrl: '<your-tos-url>', | |
// Privacy policy url/callback. | |
privacyPolicyUrl: function() { | |
window.location.assign('<your-privacy-policy-url>'); | |
} | |
}; | |
// 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); | |
</script> | |
</head> | |
<body> | |
<!-- The surrounding HTML is left untouched by FirebaseUI. | |
Your app may use that space for branding, controls and other customizations.--> | |
<h1>Welcome to My Awesome App</h1> | |
<div id="firebaseui-auth-container"></div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment