Fix: rotate access token and add test

This commit is contained in:
2025-12-07 22:06:32 +08:00
parent 8d3cd0260e
commit 1ce2174bdc
7 changed files with 46 additions and 12 deletions

View File

@@ -7,11 +7,16 @@ import (
)
type Database interface {
GetSession(
GetSessionByLoginToken(
ctx context.Context,
loginToken string,
) (models.Session, error)
GetSessionByUserId(
ctx context.Context,
userId string,
) (models.Session, error)
UpdateRefreshToken(
ctx context.Context,
userId string,