Skip to content

Commit

Permalink
fix escaping issues
Browse files Browse the repository at this point in the history
  • Loading branch information
pilcrowOnPaper committed Mar 9, 2024
1 parent 7d4ffd0 commit 3903664
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/oauth.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ You can create a "Sign in" button by adding a link to the login endpoint.
The user will be redirected to the callback endpoint (as defined in `redirect_uri`) with a single-use authorization code, which is included as a query parameter. This code is then exchanged for an access token.

```
https://example.com/login/github/callback?code=<CODE>&state=<STATE>
https://example.com/login/github/callback?code=CODE&state=STATE
```

If you added a state to the authorization URL, the redirect request will include a `state` parameter. It is critical to check that it matches the state associated with the attempt. Return an error if the state is missing or if they don't match. A common mistake is forgetting to check whether the `state` parameter exists in the URL.
Expand Down

0 comments on commit 3903664

Please sign in to comment.