Skip to content

Commit

Permalink
chore: require query parameter, not the body parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
jaccomeijer committed Jul 17, 2021
1 parent 792ea75 commit 3d7b617
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ export const persist = async ({
jwtApi,
req,
}: Persist): Promise<AuthCodeCollection> => {
const codeToken = req.body['code']
const codeToken = req.query['code']
if (typeof codeToken !== 'string') {
throw invalidRequestErrorFactory({
arg: 'code',
description: 'Code body parameter is required',
description: 'Code query parameter is required',
})
}

Expand Down

0 comments on commit 3d7b617

Please sign in to comment.