Skip to content

Comments

Change logout from GET to POST#675

Draft
Copilot wants to merge 3 commits intomainfrom
copilot/fix-logout-method-to-post
Draft

Change logout from GET to POST#675
Copilot wants to merge 3 commits intomainfrom
copilot/fix-logout-method-to-post

Conversation

Copy link
Contributor

Copilot AI commented Feb 17, 2026

Logout endpoint was using GET method. Changed to POST across the full stack.

Changes

  • OpenAPI spec: /auth/logout endpoint changed from GET to POST
  • Backend: Regenerated Go handlers from spec
  • Frontend API route: /logout handler changed from GET to POST
  • Frontend UI: Replaced anchor links with form submissions

Example

Before:

<a href={LogoutRoute}>
  <Item value={LogoutID}>Logout</Item>
</a>

After:

<form action={LogoutAction} method="POST">
  <button type="submit">
    <Item value={LogoutID}>Logout</Item>
  </button>
</form>

Both the backend API endpoint and the Next.js frontend route now correctly handle POST requests for logout operations.

Original prompt

This section details on the original issue you should resolve

<issue_title>Logout should be POST</issue_title>
<issue_description>

export async function GET() {
</issue_description>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@vercel
Copy link

vercel bot commented Feb 17, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
storyden Ready Ready Preview, Comment Feb 17, 2026 9:10am
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
storyden-homepage Ignored Ignored Preview Feb 17, 2026 9:10am

- Updated OpenAPI spec to use POST method for /auth/logout
- Regenerated backend code from OpenAPI spec
- Changed Next.js /logout route from GET to POST handler
- Updated Logout component to use form submission instead of anchor link
- Regenerated frontend API client from OpenAPI spec

Co-authored-by: Southclaws <1636971+Southclaws@users.noreply.github.com>
…styles

Co-authored-by: Southclaws <1636971+Southclaws@users.noreply.github.com>
Copilot AI changed the title [WIP] Change logout method to POST Change logout from GET to POST Feb 17, 2026
Copilot AI requested a review from Southclaws February 17, 2026 09:09
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.

Logout should be POST

2 participants