package
Version:
v0.59.2
Opens a new window with list of versions in this module.
Published: May 18, 2026
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package notebookjwt mints + verifies short-lived HMAC-SHA256 tokens
for the agentserver web notebook proxy. Claims: user_id, workspace_id,
exp. Format mirrors internal/codexappgateway/captoken.go (JWT-shape,
base64url-no-pad).
Mint produces a token valid for ttl from now.
type Claims struct {
UserID string `json:"user_id"`
WorkspaceID string `json:"workspace_id"`
Exp int64 `json:"exp"`
}
Claims are what callers get back from Verify.
Verify parses, checks signature + expiry, returns claims.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.