Skip to content

Conversation

@nikosdouvlis
Copy link
Member

Otherwise, in Nextjs apps the invalidate cache server action will result in a 404 if current route is being protected by auth().protect()

Description

Checklist

  • npm test runs as expected.
  • npm run build runs as expected.
  • (If applicable) JSDoc comments have been added or updated for any package exports
  • (If applicable) Documentation has been updated

Type of change

  • 🐛 Bug fix
  • 🌟 New feature
  • 🔨 Breaking change
  • 📖 Refactoring / dependency upgrade / documentation
  • other:

@changeset-bot
Copy link

changeset-bot bot commented Aug 22, 2024

🦋 Changeset detected

Latest commit: 27d9cb6

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@clerk/clerk-js Patch
@clerk/chrome-extension Patch
@clerk/clerk-expo Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@nikosdouvlis nikosdouvlis force-pushed the nikos/sdki-611-404-errors-on-sign-out-while-user-is-on-a-protected-route branch from c033dc9 to a0804a9 Compare August 22, 2024 16:03
@nikosdouvlis nikosdouvlis marked this pull request as ready for review August 22, 2024 19:33
Copy link
Member

@octoper octoper left a comment

Choose a reason for hiding this comment

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

💯

@brkalow
Copy link
Member

brkalow commented Aug 22, 2024

@nikosdouvlis @octoper does this reintroduce the bug that was fixed by #3371?

We explicitly made a change to ensure the session cookie was cleared before clearing the cache on sign out.

@nikosdouvlis nikosdouvlis marked this pull request as draft August 22, 2024 21:16
@nikosdouvlis nikosdouvlis marked this pull request as ready for review August 27, 2024 08:23
Otherwise, in Nextjs apps the invalidate cache server action will result in a 404 if current route is being protected by auth().protect()
@nikosdouvlis nikosdouvlis force-pushed the nikos/sdki-611-404-errors-on-sign-out-while-user-is-on-a-protected-route branch from f54a77f to 27d9cb6 Compare August 27, 2024 10:47
@nikosdouvlis nikosdouvlis merged commit 79a05e0 into main Aug 28, 2024
@nikosdouvlis nikosdouvlis deleted the nikos/sdki-611-404-errors-on-sign-out-while-user-is-on-a-protected-route branch August 28, 2024 08:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants