Feat: add login

This commit is contained in:
ytshih committed 2025-12-07 12:15:48 +08:00
1 parent fb1c47b321
commit 2eb8a18c40
11 files changed
+265 -7

No files matched your search

+6 -1
View File
@@ -9,11 +9,16 @@ import (
type Database interface {
GetSession(
ctx context.Context,
userId string,
loginToken string,
) (models.Session, error)
UpdateRefreshToken(
ctx context.Context,
userId string,
) (models.Session, error)
UpdateLoginToken(
ctx context.Context,
userId string,
) (string, error)
}