Skip to content

Commit

Permalink
Merge branch 'main' of github.com:svera/coreander into v4
Browse files Browse the repository at this point in the history
  • Loading branch information
svera committed Jun 4, 2024
2 parents 6abb29a + 6c30efa commit 2976dbc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/webserver/controller/auth/signin.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func (a *Controller) SignIn(c *fiber.Ctx) error {
Name: "coreander",
Value: signedToken,
Path: "/",
Expires: expiration,
MaxAge: int(a.config.SessionTimeout.Seconds()),
Secure: false,
HTTPOnly: true,
})
Expand Down
2 changes: 1 addition & 1 deletion internal/webserver/controller/user/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func (u *Controller) updateUserData(c *fiber.Ctx, user *model.User, session mode
Name: "coreander",
Value: signedToken,
Path: "/",
Expires: expiration,
MaxAge: int(session.Exp),
Secure: false,
HTTPOnly: true,
})
Expand Down

0 comments on commit 2976dbc

Please sign in to comment.