Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: auth bug #150

Merged
merged 1 commit into from
Feb 24, 2025
Merged

fix: auth bug #150

merged 1 commit into from
Feb 24, 2025

Conversation

JacobLinCool
Copy link
Member

This pull request includes several changes to improve the authentication flow and user interface in the application. The most important changes include adding a new route exception for sign out, enhancing the user interface for authenticated users, and adding logging for authentication state changes.

Enhancements to authentication flow:

  • src/hooks.server.ts: Added a new route exception for /api/auth/signout to the authentication middleware to allow users to sign out without being authenticated.
  • src/lib/stores/auth.ts: Updated the signOut function to check if there is a current user before attempting to sign out, ensuring no errors occur if the user is already signed out.

User interface improvements:

  • src/lib/components/Auth.svelte: Improved the layout of the authenticated user interface by adding flexbox classes to the container div, enhancing the visual presentation.

Logging and debugging:

  • src/lib/stores/auth.ts: Added a console log statement to log authentication state changes, aiding in debugging and monitoring authentication events.

@JacobLinCool JacobLinCool self-assigned this Feb 24, 2025
@Copilot Copilot bot review requested due to automatic review settings February 24, 2025 14:02

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.

Files not reviewed (1)
  • src/lib/components/Auth.svelte: Language not supported
@JacobLinCool JacobLinCool merged commit bb15d61 into main Feb 24, 2025
5 checks passed
@JacobLinCool JacobLinCool deleted the small-auth-fix branch February 24, 2025 14:04
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