kreactive / JSONWebToken

Swift lib for decoding, validating, signing and verifying JWT
MIT License
36 stars 24 forks source link

Crash Fix #14

Open sathishkraj opened 5 years ago

sathishkraj commented 5 years ago

there is spike in crash recently in this statement so as recommended use safe unwrap instead of newValue == nil.

Crashed: com.apple.main-thread 0 JSONWebToken 0x10427fe60 $S12JSONWebToken23SignatureValidatorErrorOMa + 656 1 JSONWebToken 0x104276aa4 specialized VariantDictionaryBuffer.nativeUpdateValue(:forKey:) (JSONWebToken.swift) 2 JSONWebToken 0x104278980 specialized JSONWebToken.Payload.subscript.setter () 3 JSONWebToken 0x104275134 JSONWebToken.Payload.issuer.setter + 108