DefineX-Studios / MasjidBuddy

Application that provides a platform for local masjids to provide services online.
MIT License
0 stars 0 forks source link

setup google auth #23

Closed adsau59 closed 6 months ago

adsau59 commented 7 months ago
electr0de commented 7 months ago

https://github.com/DefineX-Studios/MasjidBuddy/blob/main/code/presentation/mb-client/src/screens/login/index.tsx#L14-L17 Link for the code where you can call your API to put data for authentication

adsau59 commented 7 months ago

look into https://starter.obytes.com/guides/authentication/

adsau59 commented 7 months ago

google signin component created, have to work on its funcitonality next

difficulties faced:

adsau59 commented 6 months ago

configured google auth

  1. created oauth configuration for android (using fingerprint from debug.keystore, and app id com.masjidbuddy.development)
  2. created oauth configuration for web
  3. used client id and secret from web to configure supabase
  4. created client secret from web to configure sign in button in our app

also, was getting DEVELOPER_ERROR solved using this solution

adsau59 commented 6 months ago

also updated the documentation to have json file to ask for secrets.json file

firefox_5jbVpzc01S

adsau59 commented 6 months ago

tabs setup google auth · Issue #23 · DefineX-Studios-MasjidBuddy - 2023-12-07 22-00-41.json

adsau59 commented 6 months ago

all the google sign in code was inside the component, moved it out and abstracted it so that later on other sign in methods can be added easily using the interface

currently the app doesn't launch for some reason, investigating that currently

adsau59 commented 6 months ago

fixed, all done now

adsau59 commented 6 months ago

done