begin refresh token
This commit is contained in:
parent
a2601f1584
commit
5119d7aea3
15 changed files with 611 additions and 275 deletions
|
@ -17,6 +17,8 @@ type AuthStorage interface {
|
|||
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)
|
||||
|
||||
TerminateSession(context.Context, string, string) error
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue