1
0
mirror of https://github.com/zitadel/zitadel.git synced 2025-06-16 15:18:33 +00:00
Silvan 84b20bc4e1
fix(auth): always get token by id and user id ()
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)
}