mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-15 12:27:59 +00:00
84b20bc4e1
Co-authored-by: Florian Forster <florian@zitadel.com>
13 lines
299 B
Go
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)
|
|
}
|