iOS Swift SDK crashing

When calling isAuthenticated method, it is crashing at

guard let previousState = NSKeyedUnarchiver
.unarchiveObject(with: encodedAuthState.value) as? OktaTokenManager else { return false }


It seems to crash when access token is expired because whenever I call the method after fresh install, get access token, it works well. However after an hour (that’s when our token expires), it crashes. Only way to get around is to reinstall the app which means this SDK cant be used at all.

Thanks for the report @sebum! I’ve created an issue so we can investigate.