> For the complete documentation index, see [llms.txt](https://nabilkhafali.gitbook.io/fuodz-webapp/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://nabilkhafali.gitbook.io/fuodz-webapp/enable-firebase-otp.md).

# Enable firebase OTP

In your root directory, under src folder, there is a file called main.js, open it and edit the firebaseConfig with your own data from firebase, set data to these variables below;

* [ ] apiKey
* [ ] authDomain
* [ ] projectId
* [ ] storageBucket
* [ ] messagingSenderId
* [ ] appId
* [ ] measurementId

after that save.

For firebase otp to work properly, you need to first setup firebase on the backend properly.

Then add your domain/backend url as a trusted domain on firebase console.

1. Go to firebase console and select your project
2. Click on **Authentication**
3. Then select **sign-in method,** scroll to the section title **Authorised Domains**
4. Click on **Add domain** to add new domain to the firebase authorised domains.
5. After adding your backend domain, click on **Save**

![You're all set now](https://4014800298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mh-aV4f8yYAZz1JI4bb%2Fuploads%2Fz7GvJOfitVenio2RjKpU%2Fimage.png?alt=media\&token=3ceb2e06-595c-4a41-94dc-0dccf1cb5e1f)
