Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Google Firebase is used for authentication in VXG Web Client and you can switch to your own Firebase authentication using the following steps:

1. Create a new project in the Firebase console

Go to https://console.firebase.google.com/, click on "Add project"

...

Enter app nickname and click “Register app”

...

2. Create the config.js file

Go to https://console.firebase.google.com/, then go to “Project settings” > “General”, copy firebase config, and store it as file /api/conf.d/config.js

...

Code Block
const firebaseConfig = {
  apiKey: "AIzaSyA7qxoxlh85yV-NotUMzBnVtm4OruMVq6Y",
  authDomain: "testfb-15070.firebaseapp.com",
  projectId: "testfb-15070",
  storageBucket: "testfb-15070.appspot.com",
  messagingSenderId: "764840511",
  appId: "1:764840511:web:feb0fe8d93c4205bd7068a"
};
window.no_check_mail_auth = window.no_check_mail_auth || false;
window.no_check_local_addresses = window.no_check_local_addresses || false;
window.ipworld_api_key = '8c835497858d45029599768e028939ce';

3. Create the firebase.php file

Go to https://console.firebase.google.com/, then “Service accounts” and click “Generate new private key”

...