Skip to content

Conversation

@ann-aot
Copy link
Owner

@ann-aot ann-aot commented Sep 2, 2025

Changes

Implemented Google login and logout functionality, including a dashboard view and route protection.

Notes

This PR integrates Google Identity Services for user authentication:

  • Google Login: Users can log in via Google, with the prompt: 'select_account' configured to always show the account selection dialog.
  • Authentication State: A new auth.ts store manages the authentication state (user info, tokens) and persists it to local storage.
  • Protected Routes: Vue Router guards are implemented to protect routes, redirecting unauthenticated users to the /login page.
  • Dashboard: A basic dashboard view (/dashboard) displays logged-in user information.
  • Logout: A logout button is available in the application's top bar.
  • Configuration: Requires VITE_GOOGLE_CLIENT_ID to be set in the .env file for the login to function.

Checklist

  • Added meaningful title for pull request
  • Unit tests pass
  • E2E tests pass
  • Linting checks pass

Open in Cursor Open in Web

Co-authored-by: ann.jacob <ann.jacob@aot-technologies.com>
@cursor
Copy link

cursor bot commented Sep 2, 2025

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

cursoragent and others added 24 commits September 2, 2025 22:22
Co-authored-by: ann.jacob <ann.jacob@aot-technologies.com>
Co-authored-by: ann.jacob <ann.jacob@aot-technologies.com>
Co-authored-by: ann.jacob <ann.jacob@aot-technologies.com>
Co-authored-by: ann.jacob <ann.jacob@aot-technologies.com>
Co-authored-by: ann.jacob <ann.jacob@aot-technologies.com>
Co-authored-by: ann.jacob <ann.jacob@aot-technologies.com>
Co-authored-by: ann.jacob <ann.jacob@aot-technologies.com>
…ndling

Co-authored-by: ann.jacob <ann.jacob@aot-technologies.com>
Co-authored-by: ann.jacob <ann.jacob@aot-technologies.com>
Co-authored-by: ann.jacob <ann.jacob@aot-technologies.com>
Co-authored-by: ann.jacob <ann.jacob@aot-technologies.com>
Co-authored-by: ann.jacob <ann.jacob@aot-technologies.com>
Co-authored-by: ann.jacob <ann.jacob@aot-technologies.com>
Co-authored-by: ann.jacob <ann.jacob@aot-technologies.com>
Co-authored-by: ann.jacob <ann.jacob@aot-technologies.com>
Co-authored-by: ann.jacob <ann.jacob@aot-technologies.com>
Co-authored-by: ann.jacob <ann.jacob@aot-technologies.com>
Co-authored-by: ann.jacob <ann.jacob@aot-technologies.com>
Co-authored-by: ann.jacob <ann.jacob@aot-technologies.com>
Co-authored-by: ann.jacob <ann.jacob@aot-technologies.com>
Co-authored-by: ann.jacob <ann.jacob@aot-technologies.com>
Co-authored-by: ann.jacob <ann.jacob@aot-technologies.com>
…tion

Co-authored-by: ann.jacob <ann.jacob@aot-technologies.com>
Co-authored-by: ann.jacob <ann.jacob@aot-technologies.com>
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.

2 participants