diff options
author | Morgan Chen <morganchen12@gmail.com> | 2018-06-28 12:02:16 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-28 12:02:16 -0700 |
commit | 7aa852fb234f8cc3ece5aa5cff5a53518249f3f0 (patch) | |
tree | cb8b47dba0801092cab5ba6cc4edb324374cb46d /Firebase/Auth/Source/Public | |
parent | bb9fd3136b189456606c8ece7ee1f2e9b1590e55 (diff) | |
parent | 21116161f92eda06389daaef670aa593aa588bcd (diff) |
Merge pull request #1436 from morganchen12/auth2
Add informative error to JWT parse failures
Diffstat (limited to 'Firebase/Auth/Source/Public')
-rw-r--r-- | Firebase/Auth/Source/Public/FIRAuthErrors.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Firebase/Auth/Source/Public/FIRAuthErrors.h b/Firebase/Auth/Source/Public/FIRAuthErrors.h index 4a1a6f1..a3fbe26 100644 --- a/Firebase/Auth/Source/Public/FIRAuthErrors.h +++ b/Firebase/Auth/Source/Public/FIRAuthErrors.h @@ -311,6 +311,11 @@ typedef NS_ENUM(NSInteger, FIRAuthErrorCode) { /** Indicates an internal error occurred. */ FIRAuthErrorCodeInternalError = 17999, + + /** Raised when a JWT fails to parse correctly. May be accompanied by an underlying error + describing which step of the JWT parsing process failed. + */ + FIRAuthErrorCodeMalformedJWT = 18000, } NS_SWIFT_NAME(AuthErrorCode); @end |