zooniverse / shakespeares_world

Full text transcription project for the Folger Shakespeare Library
https://www.shakespearesworld.org
Other
8 stars 5 forks source link

Upgrade panoptes-javascript-client to use the new OAuth library #286

Closed rogerhutchings closed 8 years ago

rogerhutchings commented 8 years ago

Once zooniverse/panoptes-javascript-client#24 is merged, we can use the new OAuth library. This automatically refreshes bearer tokens, fixing #272 and #227

This means modifying auth.factory.js to use the oauth methods checkCurrent, signIn and signOut, and store the user object as it currently does. These work identically to those in the existing auth module.

It should also run the OAuth init method in the app.module.js file, and run startApp as a function after that promise resolves