rename storage methods and fix mocks
This commit is contained in:
parent
3a46908051
commit
2a11a1979e
10 changed files with 204 additions and 161 deletions
|
@ -16,9 +16,9 @@ type AuthStorage interface {
|
|||
SaveAuthCode(context.Context, string, string) error
|
||||
DeleteAuthRequest(context.Context, string) error
|
||||
|
||||
CreateToken(context.Context, TokenRequest) (string, time.Time, error)
|
||||
CreateTokens(ctx context.Context, request TokenRequest, currentRefreshToken string) (accessTokenID string, newRefreshToken string, expiration time.Time, err error)
|
||||
RefreshTokenRequestByRefreshToken(context.Context, string) (RefreshTokenRequest, error)
|
||||
CreateAccessToken(context.Context, TokenRequest) (string, time.Time, error)
|
||||
CreateAccessAndRefreshTokens(ctx context.Context, request TokenRequest, currentRefreshToken string) (accessTokenID string, newRefreshToken string, expiration time.Time, err error)
|
||||
TokenRequestByRefreshToken(ctx context.Context, refreshToken string) (RefreshTokenRequest, error)
|
||||
|
||||
TerminateSession(context.Context, string, string) error
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue