-
Notifications
You must be signed in to change notification settings - Fork 208
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
[SDK-3537] Credential manager for React Native #501
Conversation
This is to ensure we have same API for both iOS and Android. This is a pattern used in our Flutter SDK as well
👋🏻 Should this be going into |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just left a few comments.
Also we should get @Widcket to review the iOS implementation, if she hasn't had a look already.
src/credentials-manager/index.js
Outdated
/** | ||
* Construct an instance of CredentialsManager which can be used to | ||
* store, retrieve and manage credentials. | ||
* | ||
* @param {*} auth - required - instance of Auth0 Auth API | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is an improvement but we should document the actual fields like we've done for other methods (saveCredentials
, for example).
instance of Auth0 Auth API
Is this correct? Why do we require the whole instance of the Auth API, only to extract domain
and clientId
and then not use the instance?
Changes
We have provided Credentials Manager support for Android and iOS in React Native. The following methods are added
We also return a boolean value from Android API for
clearCredentials
. This is to be same to our iOS API and Flutter APIThis PR is a superset of #497 and will have all the changes and reviews from there implemented.
References
#476
Testing
Checklist