pub fn claims_token(wasm: impl AsRef<[u8]>) -> Result<Option<Token<Component>>>Expand description
Extracts and validates claims contained within a WebAssembly binary, if present
§Arguments
wasm- Bytes that constitute a valid WebAssembly binary
§Errors
Fails if either parsing fails, or claims are not valid
§Returns
The token embedded in the component, including the jwt::Claims and the raw JWT