Skip to main content

odin_access_key_generate

Creates a new access key crucial for signing tokens, facilitating access to an ODIN server. An access key is a 44-character long Base64 String, embodying a version identifier, random bytes, and a checksum.

See our guides on access keys and tokens for more information.

Declaration
OdinReturnCode odin_access_key_generate(char *buf, size_t buf_len);

Parameters

buf

Pointer to a buffer where the generated access key will be stored.

Declaration
char *buf;

buf_len

Size of the buffer for the access key.

Declaration
size_t buf_len;

Returns

A return code indicating success or failure.

Return Type
OdinReturnCode