zitadel/internal/auth/repository/token.go
Silvan 84b20bc4e1
fix(auth): always get token by id and user id (#4371)
Co-authored-by: Florian Forster <florian@zitadel.com>
2022-09-15 12:59:40 +00:00

13 lines
299 B
Go

package repository
import (
"context"
usr_model "github.com/zitadel/zitadel/internal/user/model"
)
type TokenRepository interface {
IsTokenValid(ctx context.Context, userID, tokenID string) (bool, error)
TokenByIDs(ctx context.Context, userID, tokenID string) (*usr_model.TokenView, error)
}