Fixes #340 Corrected the disfucntional google login button #503
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR fixes the issue #340.
EXPLANATION:-
The Google Login Button now works properly enabling the user to successfully login and signin. This basically uses @react-oauth/google component to ensure that the login/signin activities are carried out smoothly without any hindrance.
The control has been shifted from json web tokens to this module ensuring a more smooth and authentic login using google OAuth client.
PROOF OF WORK:-
This Screenshot shows that i can now easily login using any of my google ids, without any hindrance and it removes the problem of displaying only a blank page.
REQUISITES:-
Here i have created a google oauth client and registered it as a web application thereby generating my oauth client id and password. Thereby i used that google client id to display the login feature. You can similarly create a new Client id in the Google API console registering this application as a web application and input your generated google client id here at line 49 instead of YOUR_CLIENT_ID.
This screenshot shows the area where you need to change your client id.
Thank You.