Skip to content

Instantly share code, notes, and snippets.

@xi1570-krupeshanadkat
Created October 24, 2020 19:42
Show Gist options
  • Save xi1570-krupeshanadkat/6062a24ba06aceddb266850a29212e34 to your computer and use it in GitHub Desktop.
Save xi1570-krupeshanadkat/6062a24ba06aceddb266850a29212e34 to your computer and use it in GitHub Desktop.
firebaseConfig.js Ms Auth App
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