hngprojects / hng_boilerplate_nestjs

Description
Apache License 2.0
181 stars 105 forks source link

[FIX] [ANCHOR: BE PYTHON] Update the google auth endpoint to return user ID upon successful sign up #866

Open emmanuellaomoregie opened 3 weeks ago

emmanuellaomoregie commented 3 weeks ago

Description

Update the existing Google authentication endpoint to return the user ID upon successful sign-up

Acceptance Criteria

Purpose

To return the user ID after a successful Google sign-up.

Requirements

Expected Outcome

The Google authentication endpoint returns the user ID in the response payload upon successful sign-up

Response gotten when direct login is used

{ "user": { "id":"066bfa15-e8de-76b9-8000-d92cc79a1311", "first_name":"Omoregie", "last_name":"Emmanuella", "image":"", "email":"emmanuellaomoregie@gmail.com" }, "expires":"2024-09-21T16:35:49.740Z", "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoiMDY2YmZhMTUtZThkZS03NmI5LTgwMDAtZDkyY2M3OWExMzExIiwiZXhwIjoxNzI0MzgwNTQ5LCJ0eXBlIjoiYWNjZXNzIn0.xmQcK0ynf8XRwHx8H7N9hCQuq8X3S3gzcSZyrerAhqw" }

Response gotten when google login is used

{ "user": { "first_name":"Emmanuella", "last_name":"Omoregie", "image": "https://lh3.googleusercontent.com/a/ACg8ocKrkyQKfuzduELC34B133HfPZ1Nx6v7cVLer4eqbBwWWZWAOQ1o=s96-c", "email":"jasellatony403@gmail.com" }, "expires":"2024-09-21T16:26:35.943Z", "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoiMDY2Yzc2NWQtODc1Mi03YjI0LTgwMDAtMzU3MTBiYmJmZjIzIiwiZXhwIjoxNzI0Mzc5OTg1LCJ0eXBlIjoiYWNjZXNzIn0.sJhurjULPWwBGIEPdQiKQkTZcZ1YrGoSZqYCMkLngV8" }

JoshuaOloton commented 3 weeks ago

Pls assign to me

MikeSoft007 commented 3 weeks ago

@JoshuaOloton this is my issue ooo lolzzz

emmanuellaomoregie commented 3 weeks ago

None of you have been assigned yet till now

JoshuaOloton commented 3 weeks ago

@MikeSoft007 had actually started work on it, pls assign to him