mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-14 03:54:21 +00:00
14 lines
319 B
Go
14 lines
319 B
Go
|
package repository
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
"time"
|
||
|
|
||
|
"github.com/caos/zitadel/internal/token/model"
|
||
|
)
|
||
|
|
||
|
type TokenRepository interface {
|
||
|
CreateToken(ctx context.Context, agentID, applicationID, userID string, lifetime time.Duration) (*model.Token, error)
|
||
|
IsTokenValid(ctx context.Context, tokenID string) (bool, error)
|
||
|
}
|