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

add logout route + tests #291

Merged
merged 1 commit into from
Dec 23, 2024
Merged

add logout route + tests #291

merged 1 commit into from
Dec 23, 2024

Conversation

juancwu
Copy link
Contributor

@juancwu juancwu commented Dec 23, 2024

Description

A logout route that unsets the refresh token cookie.

Linked Issues

Testing

  • add new test for the logout route in tests/server_test.go

Checklist

Before opening this PR, make sure the PR:

  • Has an assignee or group of assignees.
  • Has a reviewer or a group of reviewers.
  • Is labelled properly.
  • Has the SPUR project assigned to it.
  • Has an assigned milestone.

Additionally, make sure that:

  • I have commented my code, particularly in hard-to-understand areas.
  • I have made corresponding changes to the documentation.
  • My changes generate no new warnings.
  • I have added tests that prove my fix is effective or that my feature works.
  • New and existing unit tests pass locally with my changes.
  • Any dependent changes have been merged and published in downstream modules.

@juancwu juancwu added enhancement New feature or request backend Related to the backend of the project api Related to the backend routes and endpoints labels Dec 23, 2024
@juancwu juancwu self-assigned this Dec 23, 2024
@juancwu juancwu linked an issue Dec 23, 2024 that may be closed by this pull request
4 tasks
@juancwu juancwu added this to the Complete the project MVP milestone Dec 23, 2024
Copy link
Member

@aidantrabs aidantrabs left a comment

Choose a reason for hiding this comment

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

lgtm

@juancwu juancwu merged commit fcefb34 into main Dec 23, 2024
4 checks passed
@juancwu juancwu deleted the feat/182/logout-route branch December 23, 2024 23:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Related to the backend routes and endpoints backend Related to the backend of the project enhancement New feature or request
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[BE Feat] Create Logout authentication endpoint
2 participants