2021-05-20 13:33:35 +02:00
|
|
|
package repository
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
|
2022-04-27 01:01:45 +02:00
|
|
|
"github.com/zitadel/zitadel/internal/user/model"
|
2021-05-20 13:33:35 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
type RefreshTokenRepository interface {
|
2023-03-28 14:28:56 +03:00
|
|
|
RefreshTokenByID(ctx context.Context, tokenID, userID string) (*model.RefreshTokenView, error)
|
|
|
|
RefreshTokenByToken(ctx context.Context, refreshToken string) (*model.RefreshTokenView, error)
|
2021-05-20 13:33:35 +02:00
|
|
|
SearchMyRefreshTokens(ctx context.Context, userID string, request *model.RefreshTokenSearchRequest) (*model.RefreshTokenSearchResponse, error)
|
|
|
|
}
|