Feat: add login
This commit is contained in:
11 files changed
+265
-7
No files matched your search
@@ -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)
|
||||
}
|
||||
Reference in new issue
Block a user