Fix: rotate access token and add test

This commit is contained in:
2025-12-07 22:06:32 +08:00
parent 8d3cd0260e
commit 4714ff7f56
8 changed files with 52 additions and 12 deletions

View File

@@ -44,7 +44,7 @@ func (self *Handlers) PostLogin(
}
}
session, err := self.db.GetSession(ctx, input.Token)
session, err := self.db.GetSessionByLoginToken(ctx, input.Token)
if err != nil {
return middlewares.HTTPError{
StatusCode: http.StatusUnauthorized,