Skip to main content

Module token

Module token 

Source
Expand description

OpenApp API-key token parsing.

Mirrors apps/backend/local_server/src/api_key_store.rs: tokens have the shape {base_url}_openapp_{secret}. The base URL embedded in the token is the canonical one the backend was issued for, which lets SDK clients auto-derive the endpoint without extra configuration.

Structs§

ApiKey
A parsed OpenApp API-key token.

Enums§

TokenFormatError
Errors raised when parsing an OpenApp API-key token.

Constants§

API_KEY_SEPARATOR
Separator between base_url and secret in an API-key token.