UNPKG

@enclavemoney/enclave-wallet-sdk

Version:

A simple enclave wallet SDK for React applications

28 lines (27 loc) 1.09 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.googleProvider = exports.auth = void 0; var app_1 = require("firebase/app"); var auth_1 = require("firebase/auth"); // Firebase configuration // Note: Replace these with your actual Firebase project configuration var firebaseConfig = { apiKey: "AIzaSyCI9wFnK7iJuH7zEKrdajjRgxd1uVjCnFA", authDomain: "enclave-wallet.firebaseapp.com", projectId: "enclave-wallet", storageBucket: "enclave-wallet.appspot.com", messagingSenderId: "160004845895", appId: "1:160004845895:web:47298d420101e76829dc62", measurementId: "G-TFLS0L6WKJ", }; // Initialize Firebase var app = (0, app_1.initializeApp)(firebaseConfig); // Initialize Firebase Authentication and get a reference to the service exports.auth = (0, auth_1.getAuth)(app); // Initialize Google Auth Provider exports.googleProvider = new auth_1.GoogleAuthProvider(); // Configure Google provider to always prompt for account selection exports.googleProvider.setCustomParameters({ prompt: "select_account", }); exports.default = app;