verify

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 28, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package verify provides TxToken JWT verification with JWKS-based key resolution.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Verifier

type Verifier struct {
	// contains filtered or unexported fields
}

Verifier validates TxToken JWTs against a JWKS endpoint.

func New

func New(jwksURL, audience string) *Verifier

New creates a new TxToken verifier. jwksURL is the URL of the TTS JWKS endpoint (e.g., "https://tts.example.com/.well-known/jwks.json"). audience is the expected trust domain (the `aud` claim in the TxToken).

func (*Verifier) Verify

func (v *Verifier) Verify(_ context.Context, tokenString string) (*token.Claims, error)

Verify validates a TxToken JWT string and returns the extracted claims. It checks: typ header, signature (via JWKS), expiration, and audience.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL