Fix: rotate access token and add test
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user