UOdinTokenGenerator
A struct for generating ODIN tokens, employed for generating signed room tokens predicated on an access key. Be aware that access keys serve as your unique authentication keys, requisite for generating room tokens to access the ODIN server network. To ensure your security, it's strongly recommended that you NEVER embed an access key within your client code, and instead generate room tokens on a server.
- Header:
#include "OdinTokenGenerator.h" - Module:
Odin - Inherits from:
UObject - Blueprint: Blueprint type, Blueprintable · Blueprint reference
Overview
Functions
| Name | Description |
|---|---|
ReleaseHandle | Frees the native token generator (if any) and invalidates the handle wrapper in place. |
ConstructTokenGenerator | Constructs a new instance of the UOdinTokenGenerator class. |
SetAccessKey | |
GenerateRoomToken | Generates a signed room token for authenticating access to a specific room within the ODIN server network. |
GenerateRoomTokenEx | Generates a signed room token with detailed customization options for connecting to the ODIN server network. |
GetHandle | |
SetHandle |
Functions
ReleaseHandle
Frees the native token generator (if any) and invalidates the handle wrapper in place. Safe to call during destruction; every path that frees the native handle must go through this, so the handle cannot be freed twice.
ConstructTokenGenerator
Static · Blueprint: Construct Token Generator
Constructs a new instance of the UOdinTokenGenerator class. This method is used to initialize a token generator object with a specified access key for generating authentication tokens.
| Parameter | Type | Description |
|---|---|---|
WorldContextObject | UObject* | A reference to the current world context. |
AccessKey | const FString& | A string containing the unique access key required to generate authentication tokens. To maintain security, avoid embedding the access key in client code. |
Returns UOdinTokenGenerator* – A pointer to the newly constructed UOdinTokenGenerator instance.
SetAccessKey
| Parameter | Type | Description |
|---|---|---|
AccesssKey | const FString& |