From a07db33dd0e2ef0d2c30582c79b2e7273c7e1aac Mon Sep 17 00:00:00 2001 From: Saeed Bashir Date: Fri, 16 Feb 2024 09:36:37 +0500 Subject: [PATCH] chore: logout user on receiving mismatch email error from server (#1823) --- Source/NSError+JSON.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/NSError+JSON.swift b/Source/NSError+JSON.swift index 62911b78f0..8b77240672 100644 --- a/Source/NSError+JSON.swift +++ b/Source/NSError+JSON.swift @@ -36,6 +36,7 @@ enum APIErrorCode: String, CaseIterable { case JWTMustIncludePreferredClaim = "JWT must include a preferred_username or username claim!" case JWTUserRetrievalFailed = "User retrieval failed." case JWTUserDisabled = "account_disabled" + case JWTEMailMissMatch = "Failing JWT authentication due to jwt user email mismatch with lms user email." var action: APIErrorCodeAction { switch self {