@@ -38,29 +38,47 @@ struct FImmutableEngineVersionData
38
38
FString deviceModel = FGenericPlatformMisc ::GetDeviceMakeAndModel ();
39
39
};
40
40
41
+ /**
42
+ * Structure to hold initialisation data for the Immutable Passport.
43
+ */
41
44
USTRUCT ()
42
45
struct IMMUTABLE_API FImmutablePassportInitData
43
46
{
44
47
GENERATED_BODY ()
45
48
49
+ /** The Client Id. */
46
50
UPROPERTY ()
47
51
FString clientId ;
48
52
53
+ /**
54
+ * (Android, iOS, and macOS only)
55
+ * The URL where the browser will redirect after successful authentication.
56
+ */
49
57
UPROPERTY ()
50
58
FString redirectUri ;
51
59
60
+ /** The URL where the browser will redirect after logout is complete. */
52
61
UPROPERTY ()
53
62
FString logoutRedirectUri ;
54
63
64
+ /** The environment to connect to. */
55
65
UPROPERTY ()
56
66
FString environment = ImmutablePassportAction ::EnvSandbox ;
57
67
68
+ /** Whether silent logout is enabled. */
58
69
UPROPERTY ()
59
70
bool isSilentLogout = false;
60
71
72
+ /** Information about engine version */
61
73
UPROPERTY ()
62
74
FImmutableEngineVersionData engineVersion ;
63
75
76
+ /**
77
+ * Converts the FImmutablePassportInitData structure to a JSON string representation.
78
+ *
79
+ * @return A JSON string representation of the FImmutablePassportInitData structure.
80
+ * Returns an empty string if the conversion fails.
81
+ */
64
82
FString ToJsonString () const ;
65
83
};
66
84
@@ -158,12 +176,15 @@ struct IMMUTABLE_API FImmutablePassportResult
158
176
{
159
177
GENERATED_BODY ()
160
178
179
+ /** Whether the response was successful. */
161
180
UPROPERTY ()
162
181
bool Success = false;
163
-
182
+
183
+ /** Error string for the response. */
164
184
UPROPERTY ()
165
185
FString Error ;
166
186
187
+ /** Response payload. */
167
188
FImtblJSResponse Response ;
168
189
};
169
190
0 commit comments