zitadel/internal/auth/repository/refresh_token.go

14 lines
472 B
Go
Raw Normal View History

package repository
import (
"context"
"github.com/zitadel/zitadel/internal/user/model"
)
type RefreshTokenRepository interface {
RefreshTokenByID(ctx context.Context, tokenID, userID string) (*model.RefreshTokenView, error)
RefreshTokenByToken(ctx context.Context, refreshToken string) (*model.RefreshTokenView, error)
SearchMyRefreshTokens(ctx context.Context, userID string, request *model.RefreshTokenSearchRequest) (*model.RefreshTokenSearchResponse, error)
}