@@ -192,7 +192,7 @@ public static void StartSteamSession(string steamId64, Action<LootLockerSessionR
192
192
193
193
/// <summary>
194
194
/// Create new user using the white label login system.
195
- ///
195
+ ///
196
196
/// White label platform must be enabled in the web console for this to work.
197
197
/// </summary>
198
198
public static void StartWhiteLabelSession ( string email , string password , Action < LootLockerSessionResponse > onComplete )
@@ -206,6 +206,22 @@ public static void StartWhiteLabelSession(string email, string password, Action<
206
206
LootLockerAPIManager . WhiteLabelSession ( sessionRequest , onComplete ) ;
207
207
}
208
208
209
+ /// <summary>
210
+ /// Create a new session for a Nintendo Switch user
211
+ ///
212
+ /// The Nintendo Switch platform must be enabled in the web console for this to work.
213
+ /// </summary>
214
+ public static void StartNintendoSwitchSession ( string nsa_id_token , Action < LootLockerSessionResponse > onComplete )
215
+ {
216
+ if ( ! CheckInitialized ( ) )
217
+ {
218
+ onComplete ? . Invoke ( LootLockerResponseFactory . SDKNotInitializedError < LootLockerSessionResponse > ( ) ) ;
219
+ return ;
220
+ }
221
+ LootLockerNintendoSwitchSessionRequest sessionRequest = new LootLockerNintendoSwitchSessionRequest ( nsa_id_token ) ;
222
+ LootLockerAPIManager . NintendoSwitchSession ( sessionRequest , onComplete ) ;
223
+ }
224
+
209
225
public static void EndSession ( string deviceId , Action < LootLockerSessionResponse > onComplete )
210
226
{
211
227
if ( ! CheckInitialized ( ) )
@@ -227,7 +243,7 @@ public static void EndSession(string deviceId, Action<LootLockerSessionResponse>
227
243
228
244
/// <summary>
229
245
/// Create new user using the white label login system.
230
- ///
246
+ ///
231
247
/// White label platform must be enabled in the web console for this to work.
232
248
/// </summary>
233
249
public static void WhiteLabelSignUp ( string email , string password , Action < LootLockerWhiteLabelSignupResponse > onComplete )
@@ -249,7 +265,7 @@ public static void WhiteLabelSignUp(string email, string password, Action<LootLo
249
265
250
266
/// <summary>
251
267
/// Request password reset email for the user.
252
- ///
268
+ ///
253
269
/// White label platform must be enabled in the web console for this to work.
254
270
/// </summary>
255
271
public static void WhiteLabelRequestPassword ( string email , Action < LootLockerResponse > onComplete )
@@ -265,7 +281,7 @@ public static void WhiteLabelRequestPassword(string email, Action<LootLockerResp
265
281
266
282
/// <summary>
267
283
/// Request verify account email for the user.
268
- ///
284
+ ///
269
285
/// White label platform must be enabled in the web console for this to work.
270
286
/// Account verification must also be enabled.
271
287
/// </summary>
0 commit comments