hngprojects / hng_boilerplate_python_fastapi_web

Apache License 2.0
154 stars 137 forks source link

Bugfix: improved Google OAuth flow with enhanced error handling and user creation #959

Closed MikeSoft007 closed 3 weeks ago

MikeSoft007 commented 3 weeks ago

Description

This pull request improves the Google OAuth flow by adding enhanced error handling and user creation. The changes include:

Related Issue (Link to issue ticket)

https://github.com/hngprojects/hng_boilerplate_nestjs/issues/884

Motivation and Context

The current Google OAuth flow had some issues with error handling and user creation. This pull request aims to improve the flow by adding robust error handling and creating a new user if they don't exist. This will improve the overall user experience and security of the application.

How Has This Been Tested?

I have tested the changes by running the following tests:

Screenshots (if appropriate - Postman, etc):

image

Types of changes

Checklist: