SENG480a-NutriDine / mobile

The mobile app
Apache License 2.0
0 stars 0 forks source link

Auth Setup #30

Closed mehradadimi closed 7 months ago

mehradadimi commented 7 months ago

:)

This has been the most painful thing to do since i started being a dev! looks simple, but its just full of errors!

make sure you do npm i and npx expo prebuild --clean and also add a .env file to the root before running them, using the credentials that I will send on Slack. A .env.dev/example will be added later to have it for all PRs.

Also, sign in DOES NOT work on Expo Go app or local builds, it has to be a dev build, and you can download it from the Expo.dev website by logging in to our shared account and downloading the builds. OR, you can request a new dev build for yourself. to do that, you need to install eas-cli on your computer and login to eas using the Expo Dev credentials, and using the following doc to request a dev build for each OS: https://docs.expo.dev/develop/development-builds/create-a-build/

I would recommend downloading the ones on Expo Dev though!!

The AuthService exports some methods to be used across the app. However, we still need ways to keep, handle, and update users. This PR is just the Google sign in functionality.

Also, PLEASE DO NOT CHANGE ANYTHING ON THE FIREBASE CONSOLE THAT ARE RELATED TO THE IOS/ANDROID APPS.

You will probably have problems running this at first, so please let me know if you have any questions.