Skip to content

Commit

Permalink
update example
Browse files Browse the repository at this point in the history
  • Loading branch information
pilcrowOnPaper committed Jan 22, 2024
1 parent ad83a57 commit 3f91d61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/posts/clerk-fuck-up.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ You can then send both the valid and invalid JWT at the same time. This is possi
```
GET https://example.com
Authorization: <VALID_JWT>
Cookie: session=<FAKE_JWT>
Cookie: __session=<FAKE_JWT>
```

Clerk validated the valid token in the authorization header, but when getting the current user ID, parsed the invalid cookie that we created instead without validating it. Why did it need to read the token from the request _twice_?
Expand Down

0 comments on commit 3f91d61

Please sign in to comment.