Skip to content

Commit

Permalink
👌 Set response status to 201 (created) when creating an access cookie.
Browse files Browse the repository at this point in the history
  • Loading branch information
klondikemarlen committed Mar 6, 2024
1 parent 4e10207 commit f07902f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/src/controllers/temporary-access-cookie-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export class TemporaryAccessCookieController extends BaseController {
const token = authHeader.substring(7, authHeader.length)

const secure = process.env.NODE_ENV !== "development"
this.response.cookie(TEMPORARY_ACCESS_COOKIE_NAME, token, {
this.response.status(201).cookie(TEMPORARY_ACCESS_COOKIE_NAME, token, {
httpOnly: true,
secure,
sameSite: "strict",
Expand Down

0 comments on commit f07902f

Please sign in to comment.