You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
auth.checkBearerToken() returns undefined after refreshing a token, but it should return the refreshed token. The refreshed token is correctly set in the client, so subsequent calls do work.
// check an expired token. This should set token to the refreshed token but actually returns undefined.lettoken=awaitauth.checkBearerToken()// token is now refreshed. This sets it correctly.token=awaitauth.checkBearerToken()
The underlying cause is that _refreshBearerToken returns undefined. It should return a Promise that resolves to the refreshed token.
auth.checkBearerToken()
returns undefined after refreshing a token, but it should return the refreshed token. The refreshed token is correctly set in the client, so subsequent calls do work.The underlying cause is that
_refreshBearerToken
returns undefined. It should return a Promise that resolves to the refreshed token.panoptes-javascript-client/lib/auth.js
Lines 64 to 91 in 9438015
The text was updated successfully, but these errors were encountered: