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
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
methodscheckCurrent
,signIn
andsignOut
, and store the user object as it currently does. These work identically to those in the existingauth
module.It should also run the OAuth
init
method in theapp.module.js
file, and runstartApp
as a function after that promise resolves