Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SessionDuration = 24 * time.Hour
SessionDuration the life time of a worker session.
Functions ¶
func VerifyToken ¶
func VerifyToken(ctx context.Context, db gorp.SqlExecutor, s string) (*hatchery.WorkerJWTClaims, error)
VerifyToken checks token technical validity
func VerifyTokenV2 ¶ added in v0.53.0
func VerifyTokenV2(ctx context.Context, db gorp.SqlExecutor, s string) (*hatchery.WorkerJWTClaimsV2, *sdk.Hatchery, error)
VerifyTokenV2 checks token technical validity
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.