mirror of
https://github.com/zitadel/zitadel.git
synced 2025-04-24 04:01:32 +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)
|
||
|
}
|