Skip to content

Task/270/[LogIn using Google Auth] /Implement frontend#23

Closed
InnetaSh wants to merge 9 commits into
devfrom
task/270/Google-Auth/Implement-frontend
Closed

Task/270/[LogIn using Google Auth] /Implement frontend#23
InnetaSh wants to merge 9 commits into
devfrom
task/270/Google-Auth/Implement-frontend

Conversation

@InnetaSh

Copy link
Copy Markdown
Contributor

dev

JIRA

Code reviewers

  • @github_username

Second Level Review

  • @github_username

Summary of issue

The current authentication system lacks support for Google OAuth, requiring users to log in only via traditional email and password credentials. This limits user accessibility and streamlines the onboarding process.

Summary of change

Implemented Google OAuth authentication on the frontend.

Integrated @react-oauth/google provider in the application root.

Added a GoogleLogin component to the LoginPage.

Updated UserApi to include a new googleLogin endpoint, sending the idToken to the backend for verification.

Configured environment variables to securely handle the Google Client ID.

Testing approach

Verified that the Google login button renders correctly on the LoginPage.

Checked the onSuccess callback to ensure the idToken is successfully received from Google.

Tested the API interaction to confirm that the backend receives the token and returns the expected authentication response.

Verified that the userLoginStore correctly updates the application state upon a successful Google login.

Confirmed that unauthorized attempts or errors are caught and handled with user-friendly error messages via antd notification.

CHECK LIST

  • СI passed
  • Сode coverage >=95%
  • PR is reviewed manually again (to make sure you have 100% ready code)
  • All reviewers agreed to merge the PR
  • I've checked new feature as logged in and logged out user if needed
  • PR meets all conventions

@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
C Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@github-actions

Copy link
Copy Markdown

Azure Static Web Apps: Your stage site is ready! Visit it here: https://happy-island-094fe5703-23.westeurope.7.azurestaticapps.net

@InnetaSh InnetaSh closed this Jun 16, 2026
@InnetaSh InnetaSh deleted the task/270/Google-Auth/Implement-frontend branch June 16, 2026 21:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant