Chore: Remove unused function TryRotateToken (#85836)

* Chore: Remove unused function

* remove unused function
This commit is contained in:
Karl Persson
2024-04-10 11:15:43 +02:00
committed by GitHub
parent f484519784
commit fd870702c7
4 changed files with 24 additions and 236 deletions

View File

@@ -71,7 +71,6 @@ type UserTokenService interface {
LookupToken(ctx context.Context, unhashedToken string) (*UserToken, error)
// RotateToken will always rotate a valid token
RotateToken(ctx context.Context, cmd RotateCommand) (*UserToken, error)
TryRotateToken(ctx context.Context, token *UserToken, clientIP net.IP, userAgent string) (bool, *UserToken, error)
RevokeToken(ctx context.Context, token *UserToken, soft bool) error
RevokeAllUserTokens(ctx context.Context, userID int64) error
GetUserToken(ctx context.Context, userID, userTokenID int64) (*UserToken, error)