@yelon/bis 15.1.1-beta.0-cdf36c8 → 15.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1765,7 +1765,21 @@ class YunzaiAuthService {
1765
1765
  askToken() {
1766
1766
  log$1('yz.auth.service: ', 'askToken');
1767
1767
  if (this.tokenService.get()?.token) {
1768
- return of(this.tokenService.get());
1768
+ const notCovertToken = this.tokenService.get();
1769
+ let convertedToken;
1770
+ if (notCovertToken && notCovertToken['access_token']) {
1771
+ convertedToken = {
1772
+ token: notCovertToken['access_token'],
1773
+ expired: notCovertToken['expires_in'],
1774
+ refreshToken: notCovertToken['refresh_token'],
1775
+ scope: notCovertToken['scope'],
1776
+ tokenType: notCovertToken['token_type']
1777
+ };
1778
+ return of(convertedToken);
1779
+ }
1780
+ else {
1781
+ return of(this.tokenService.get());
1782
+ }
1769
1783
  }
1770
1784
  else {
1771
1785
  if (this.config.loginForm) {