From e45d64b679e68d6eede0aff1d81cd39e7f48222a Mon Sep 17 00:00:00 2001 From: Saeed Bashir Date: Thu, 15 Feb 2024 17:12:06 +0500 Subject: [PATCH] chore: logout user on receiving mismatch email error from server --- 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 {