Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Service ¶
type Service struct {
Config *ConfigBuilder.Config
// contains filtered or unexported fields
}
func New ¶
func New(cfg *ConfigBuilder.Config) *Service
func (*Service) RequireAgent ¶ added in v0.15.3
RequireAgent validates SDK credentials (X-API-Key JWT, or x-project-id/x-agent-id[/x-environment-id]).
func (*Service) RequireUser ¶ added in v0.15.3
RequireUser verifies the Clerk session JWT from "Authorization: Bearer <token>" (JWKS cached locally by the Clerk SDK), requires a verified primary email, and puts the user into the request context.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package auth carries the verified caller identity through the request context.
|
Package auth carries the verified caller identity through the request context. |
|
Package testdb starts a throwaway Postgres with the real k8s/schema migrations, for integration tests.
|
Package testdb starts a throwaway Postgres with the real k8s/schema migrations, for integration tests. |