Navigation
API > API/Plugins > API/Plugins/JWT > API/Plugins/JWT/FJsonWebToken > API/Plugins/JWT/FJsonWebToken/FromString
References
| Module | JWT |
| Header | /Engine/Plugins/Experimental/JWT/Source/JWT/Public/JsonWebToken.h |
| Include | #include "JsonWebToken.h" |
| Source | /Engine/Plugins/Experimental/JWT/Source/JWT/Private/JsonWebToken.cpp |
static TOptional< FJsonWebToken > FromString
&40;
const FStringView InEncodedJsonWebToken
&41;
Remarks
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." An optional set with a FJsonWebToken if the JWT was successfully decoded.
Parameters
| Name | Description |
|---|---|
| InJsonWebTokenString | The string to decode. |