odin_token_generator_sign
Overview
Signs the provided body using the key ID and access key stored in the token generator to sign the provided body, creating a JSON Web Token (JWT). The EdDSA (Ed25519) algorithm is used for the digital signature.
Parameters
| Name | Type | Description |
|---|---|---|
token_generator | struct OdinTokenGenerator * | The token generator handle. |
body | const char * | The JSON body to sign (should include uid, rid). |
out_token | char * | Buffer to write the JWT token to. |
out_token_length | uint32_t * | Input: buffer size, Output: actual token length. |
Return Value
| Type | Description |
|---|---|
OdinError | ODIN_ERROR_SUCCESS on success. |