Navigation
API > API/Plugins > API/Plugins/JWT > API/Plugins/JWT/FJsonWebToken
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static TOptional< FJsonWebToken > FromString
(
const FStringView InEncodedJsonWebToken |
Creates a JWT from the provided string. | JsonWebToken.h | |
static bool FromString
(
const FStringView InEncodedJsonWebToken, |
JsonWebToken.h |
FromString(const FStringView)
Description
Creates a JWT from the provided string. The string must consist of 3 base64 url encoded parts: a header, payload, and signature. The parts must be split by a period character. The signature part is optional. If the signature is excluded, the string must still contain a period character in its place. Valid formats: "header.payload.signature" and "header.payload."
| Name | FromString |
| Type | function |
| Header File | /Engine/Plugins/Experimental/JWT/Source/JWT/Public/JsonWebToken.h |
| Include Path | #include "JsonWebToken.h" |
| Source | /Engine/Plugins/Experimental/JWT/Source/JWT/Private/JsonWebToken.cpp |
static TOptional < FJsonWebToken > FromString
(
const FStringView InEncodedJsonWebToken
)
An optional set with a FJsonWebToken if the JWT was successfully decoded.
Parameters
| Name | Remarks |
|---|---|
| InJsonWebTokenString | The string to decode. |
FromString(const FStringView, FJsonWebToken &)
| Name | FromString |
| Type | function |
| Header File | /Engine/Plugins/Experimental/JWT/Source/JWT/Public/JsonWebToken.h |
| Include Path | #include "JsonWebToken.h" |
| Source | /Engine/Plugins/Experimental/JWT/Source/JWT/Private/JsonWebToken.cpp |
static bool FromString
(
const FStringView InEncodedJsonWebToken,
FJsonWebToken & OutJsonWebToken
)