Fix: rotate access token and add test

This commit is contained in:
ytshih committed 2025-12-07 22:06:32 +08:00
1 parent 8d3cd0260e
commit 4714ff7f56
8 files changed
+52 -12

No files matched your search

+6 -1
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,