Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auth0.Profile crashing when saving it on Keychain #79

Closed
VincentNarbot opened this issue Dec 21, 2016 · 1 comment
Closed

Auth0.Profile crashing when saving it on Keychain #79

VincentNarbot opened this issue Dec 21, 2016 · 1 comment

Comments

@VincentNarbot
Copy link

VincentNarbot commented Dec 21, 2016

Using this
keychain.setData(NSKeyedArchiver.archivedDataWithRootObject(profile), forKey: "profile")
from the Auth0 documentation: https://auth0.com/docs/quickstart/native/ios-swift/03-session-handling#validate-an-existent-idtoken

The application is crashing and returning this:
-[A0Profile encodeWithCoder:]: unrecognized selector sent to instance *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[A0Profile encodeWithCoder:]: unrecognized selector sent to instance'

@hzalaz
Copy link
Member

hzalaz commented Dec 21, 2016

The class does not implement NSSecureCoding so the error is expected. We will evaluate if it's worth adding

@hzalaz hzalaz closed this as completed Dec 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants