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
Describe the bug
checkAndRefreshAccessToken and refreshAccessToken functions return a promise and not void.
The consequence is call to this function cannot be blocking and create issue when calling getAccessToken that returns undefined or an obsolete token.
Here is the declaration in types/index.d.ts, we can see comment is correct but declaration not ;-)
/**
* Checks if a token is needed, can be refreshed and if the token is expired.
* If so, attempts to refresh access token
* @returns {Promise<*>}
*/
checkAndRefreshAccessToken(): void;
Describe the bug
checkAndRefreshAccessToken and refreshAccessToken functions return a promise and not void.
The consequence is call to this function cannot be blocking and create issue when calling getAccessToken that returns undefined or an obsolete token.
Here is the declaration in types/index.d.ts, we can see comment is correct but declaration not ;-)
Expected Behavior
Prototype should be
Versions
Latest version v10.31.0 under typescript backend app (nestjs)
The text was updated successfully, but these errors were encountered: