-
-
Save xi1570-krupeshanadkat/6062a24ba06aceddb266850a29212e34 to your computer and use it in GitHub Desktop.
firebaseConfig.js Ms Auth App
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
import * as firebase from "firebase/app"; | |
import "firebase/auth"; | |
// Your web app's Firebase configuration | |
// Put your SDK details | |
const firebaseConfig = { | |
apiKey: "----------------------------------------", | |
authDomain: "----------------------------------------", | |
databaseURL: "----------------------------------------", | |
projectId: "----------------------------------------", | |
storageBucket: "----------------------------------------", | |
messagingSenderId: "----------------------------------------", | |
appId: "----------------------------------------"" | |
}; | |
// Initialize Firebase | |
firebase.initializeApp(firebaseConfig); | |
export default firebase | |
// Initialize Provider & Export | |
export const microsoftProvider = new firebase.auth.OAuthProvider('microsoft.com').setCustomParameters({ | |
login_hint: 'user@organization.com', | |
tenant: '------------------------', // Put Tenant Id from Azure registered app, | |
prompt: 'consent' // Get Consent from user to access their basic info (optional - Reommended only during SignUp) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment