Skip to content

Commit

Permalink
await getCodeVerifier
Browse files Browse the repository at this point in the history
  • Loading branch information
evert committed Jul 15, 2022
1 parent a4d8007 commit 2fea2a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ async function handleInnerRequest(ctx: Context, next: () => void | Promise<void>

const codeData: OAuth2CodeData = {
// Re-using the code-verifier function. It's really just a random string
state: generateCodeVerifier(),
codeVerifier: generateCodeVerifier(),
state: await generateCodeVerifier(),
codeVerifier: await generateCodeVerifier(),
redirectUri: ctx.request.origin + '/_browser-auth',
// This property is not a fetch-mw-oauth2 property, but we use it to
// know where to send the user after a successful auth. All of this is
Expand Down

0 comments on commit 2fea2a9

Please sign in to comment.