Skip to content

Commit

Permalink
fix code example in the pkce flow guide (#1502)
Browse files Browse the repository at this point in the history
  • Loading branch information
kosei28 authored Mar 22, 2024
1 parent 14fd0a5 commit 3df0109
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/pages/guides/oauth/pkce.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { serializeCookie } from "oslo/cookie";
app.get("/login/twitter", async (): Promise<Response> => {
const state = generateState();
const codeVerifier = generateCodeVerifier();
const url = await twitterAuth.createAuthorizationURL(codeVerifier, state);
const url = await twitterAuth.createAuthorizationURL(state, codeVerifier);

const headers = new Headers();
headers.append(
Expand Down

0 comments on commit 3df0109

Please sign in to comment.