@cemiar/auth-sdk 1.0.5 → 1.0.6

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.
@@ -99,7 +99,11 @@ export class CemiarAuthClient {
99
99
  return `${this.baseUrl}/microsoft?${params.toString()}`;
100
100
  }
101
101
  async refreshToken() {
102
- const data = await this.authPost("/refresh", {}, true);
102
+ const refreshPayload = {
103
+ tenantId: this.tenantId,
104
+ auds: this.auds
105
+ };
106
+ const data = await this.authPost("/refresh", refreshPayload, true);
103
107
  const accessToken = extractAccessToken(data);
104
108
  this.setAccessToken(accessToken);
105
109
  return { accessToken };
@@ -0,0 +1,4 @@
1
+ export interface RefreshPayload {
2
+ tenantId: string;
3
+ auds: string[];
4
+ }
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cemiar/auth-sdk",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "Cemiar Auth integration helpers for web apps and APIs.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",