Skip to content

Commit

Permalink
fix(deps): update dependency fastify to v5
Browse files Browse the repository at this point in the history
  • Loading branch information
renovate[bot] authored and garrappachc committed Sep 27, 2024
1 parent 8717de5 commit ed25f6c
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 86 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@
"croner": "8.1.1",
"date-fns": "4.1.0",
"dotenv": "16.4.5",
"fastify": "4.28.1",
"fastify": "5.0.0",
"fastify-plugin": "4.5.1",
"fastify-type-provider-zod": "2.0.0",
"fastify-type-provider-zod": "3.0.0",
"generate-password": "1.7.1",
"jsonwebtoken": "9.0.2",
"lodash-es": "4.17.21",
Expand Down
139 changes: 58 additions & 81 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/auth/plugins/sign-out.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default fp(
return await reply
.clearCookie('return_url')
.clearCookie('token')
.redirect(302, returnUrl)
.redirect(returnUrl, 302)
.send()
})
},
Expand Down
4 changes: 2 additions & 2 deletions src/auth/plugins/steam.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export default fp(
async app => {
app.get('/auth/steam', async (_request, reply) => {
const url = await getSteamLoginUrl()
return await reply.redirect(302, url)
return await reply.redirect(url, 302)
})

app.get('/auth/steam/return', async (request, reply) => {
Expand All @@ -92,7 +92,7 @@ export default fp(
return await reply
.clearCookie('return_url')
.setCookie('token', token, { maxAge: secondsInWeek, path: '/' })
.redirect(302, returnUrl)
.redirect(returnUrl, 302)
.send()
} catch (e) {
assertIsError(e)
Expand Down

0 comments on commit ed25f6c

Please sign in to comment.