Skip to content

Commit 3319dde

Browse files
committed
Expired refresh tokens will respond with 400 not 401
1 parent 6b32839 commit 3319dde

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Runtime/Game/LootLockerSDKManager.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ public static void StartGoogleSession(string idToken, Action<LootLockerGoogleSes
479479

480480
/// <summary>
481481
/// Refresh a previous session signed in with Google.
482-
/// A response code of 401 (Unauthorized) means the refresh token has expired and you'll need to sign in again
482+
/// A response code of 400 (Bad request) could mean that the refresh token has expired and you'll need to sign in again
483483
/// The Google sign in platform must be enabled in the web console for this to work.
484484
/// </summary>
485485
/// <param name="onComplete">onComplete Action for handling the response of type LootLockerAppleSessionResponse</param>
@@ -491,7 +491,7 @@ public static void RefreshGoogleSession(Action<LootLockerGoogleSessionResponse>
491491
/// <summary>
492492
/// Refresh a previous session signed in with Google.
493493
/// If you do not want to manually handle the refresh token we recommend using the RefreshGoogleSession(Action<LootLockerGoogleSessionResponse> onComplete) method.
494-
/// A response code of 401 (Unauthorized) means the refresh token has expired and you'll need to sign in again
494+
/// A response code of 400 (Bad request) could mean that the refresh token has expired and you'll need to sign in again
495495
/// The Google sign in platform must be enabled in the web console for this to work.
496496
/// </summary>
497497
/// <param name="refresh_token">Token received in response from StartGoogleSession request</param>
@@ -544,7 +544,7 @@ public static void StartAppleSession(string authorization_code, Action<LootLocke
544544

545545
/// <summary>
546546
/// Refresh a previous session signed in with Apple
547-
/// A response code of 401 (Unauthorized) means the refresh token has expired and you'll need to sign in again
547+
/// A response code of 400 (Bad request) could mean that the refresh token has expired and you'll need to sign in again
548548
/// The Apple sign in platform must be enabled in the web console for this to work.
549549
/// </summary>
550550
/// <param name="onComplete">onComplete Action for handling the response of type LootLockerAppleSessionResponse</param>
@@ -556,7 +556,7 @@ public static void RefreshAppleSession(Action<LootLockerAppleSessionResponse> on
556556
/// <summary>
557557
/// Refresh a previous session signed in with Apple
558558
/// If you do not want to manually handle the refresh token we recommend using the RefreshAppleSession(Action<LootLockerAppleSessionResponse> onComplete) method.
559-
/// A response code of 401 (Unauthorized) means the refresh token has expired and you'll need to sign in again
559+
/// A response code of 400 (Bad request) could mean that the refresh token has expired and you'll need to sign in again
560560
/// The Apple sign in platform must be enabled in the web console for this to work.
561561
/// </summary>
562562
/// <param name="refresh_token">Token received in response from StartAppleSession request</param>
@@ -614,7 +614,7 @@ public static void StartAppleGameCenterSession(string bundleId, string playerId,
614614

615615
/// <summary>
616616
/// Refresh a previous session signed in with Apple Game Center
617-
/// A response code of 401 (Unauthorized) means the refresh token has expired and you'll need to sign in again
617+
/// A response code of 400 (Bad request) could mean that the refresh token has expired and you'll need to sign in again
618618
/// The Apple Game Center sign in platform must be enabled in the web console for this to work.
619619
/// </summary>
620620
/// <param name="onComplete">onComplete Action for handling the response of type for handling the response of type LootLockerAppleGameCenterSessionResponse</param>
@@ -665,7 +665,7 @@ public static void StartEpicSession(string id_token, Action<LootLockerEpicSessio
665665

666666
/// <summary>
667667
/// Refresh a previous session signed in with Epic
668-
/// A response code of 401 (Unauthorized) means the refresh token has expired and you'll need to sign in again
668+
/// A response code of 400 (Bad request) could mean that the refresh token has expired and you'll need to sign in again
669669
/// The Epic sign in platform must be enabled in the web console for this to work.
670670
/// </summary>
671671
/// <param name="onComplete">onComplete Action for handling the response of type LootLockerEpicSessionResponse</param>
@@ -677,7 +677,7 @@ public static void RefreshEpicSession(Action<LootLockerEpicSessionResponse> onCo
677677
/// <summary>
678678
/// Refresh a previous session signed in with Epic
679679
/// If you do not want to manually handle the refresh token we recommend using the RefreshEpicSession(Action<LootLockerEpicSessionResponse> onComplete) method.
680-
/// A response code of 401 (Unauthorized) means the refresh token has expired and you'll need to sign in again
680+
/// A response code of 400 (Bad request) could mean that the refresh token has expired and you'll need to sign in again
681681
/// The Epic sign in platform must be enabled in the web console for this to work.
682682
/// </summary>
683683
/// <param name="refresh_token">Token received in response from StartEpicSession request</param>

0 commit comments

Comments
 (0)