@spacelr/sdk 0.10.1 → 0.10.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.
package/dist/index.mjs CHANGED
@@ -1827,9 +1827,11 @@ var AuthModule = class {
1827
1827
  }
1828
1828
  async storeTokensFromRegister(response) {
1829
1829
  if (!response.access_token) return;
1830
+ const expiresAt = response.expires_in ? Math.floor(Date.now() / 1e3) + response.expires_in : void 0;
1830
1831
  await this.tokenManager.setTokens({
1831
1832
  accessToken: response.access_token,
1832
- refreshToken: response.refresh_token
1833
+ refreshToken: response.refresh_token,
1834
+ expiresAt
1833
1835
  });
1834
1836
  this.emitState("authenticated");
1835
1837
  }