-
Notifications
You must be signed in to change notification settings - Fork 6
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
Auth clients: Hide private data from exports #133
Conversation
Export only public methods for the first-party auth client.
Export only public methods for the third-party auth client.
I've been able to classify cards on Every Name Counts without problems. Classified subjects show up in my Recents, so auth headers are being sent properly. Comments error on Talk staging, but I see the same errors on master. |
Some consuming apps use the return value from |
Add the listen and stopListening methods. Organise the exports in alphabetical order.
3e1e276
to
5681ae3
Compare
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.
auth
is missing the requestPassword
export, which is used here in PFE
I've added |
Nice. LGTM |
Hide underscored methods and properties from the exported
auth
andoauth
clients.Change the signature ofauth.checkBearerToken()
so that it resolves true/false rather than resolving with the bearer token.npm install zooniverse/panoptes-javascript-client#private-data
to try this out.