ContriHUB / Jodi-Makers

1 stars 24 forks source link

feat: added google oauth #18

Closed lokesh-wagh closed 1 year ago

lokesh-wagh commented 1 year ago

Description

  1. added a outhHandler component that can be called from backend to create cookie's
  2. added a the neccessary endpoint's for google auth in index.js
  3. added the button's and handler's that trigger google authentication

I have directed the user from frontend to backend using authgoogle endpoint then the user is redirected to google consent screen after that success oauthloger is mounted in react that save's the cookies then to further fill the required detail's user is redirected to onboarding

Related Issue

fixes #7

Fixes # (issue)

Type of change

Motivation and Context

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

Screens

jodimaker bug.webm hots (if appropriate):

Checklist:

Test Configuration:

lokesh-wagh commented 1 year ago

Hey!!! @admirerr Can you review this pr and tell me about the change's

admirerr commented 1 year ago

Hey!!! @admirerr Can you review this pr and tell me about the change's

@lokesh-wagh keep the Google account permission enabled for all.

lokesh-wagh commented 1 year ago

I didn't get you can you elaborate

admirerr commented 1 year ago

I didn't get you can you elaborate

Screenshot 2023-10-09 at 7 52 43 PM

I am asking you to resolve this issue.

lokesh-wagh commented 1 year ago

Screenshot 2023-10-09 200606 this screen will be opened on consenting

go to advanced and proceed to jodimaker because api is still under verification by google(this issue can be bypassed by adding a email to test users)

then we can proceed normally

image

if i have missed something then please guide me

lokesh-wagh commented 1 year ago

image

image

lokesh-wagh commented 1 year ago

Thank you for the guidance sir!!