@asgardeo/auth-react 1.1.7 → 1.1.8

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/src/api.d.ts CHANGED
@@ -15,14 +15,14 @@
15
15
  * specific language governing permissions and limitations
16
16
  * under the License.
17
17
  */
18
- import { AuthClientConfig, BasicUserInfo, Config, DecodedIDTokenPayload, FetchResponse, Hooks, HttpClientInstance, HttpRequestConfig, HttpResponse, OIDCEndpoints, SignInConfig } from "@asgardeo/auth-spa";
18
+ import { AsgardeoSPAClient, AuthClientConfig, BasicUserInfo, Config, DecodedIDTokenPayload, FetchResponse, Hooks, HttpClientInstance, HttpRequestConfig, HttpResponse, OIDCEndpoints, SignInConfig } from "@asgardeo/auth-spa";
19
19
  import { SPACustomGrantConfig } from "@asgardeo/auth-spa/src/models/request-custom-grant";
20
20
  import { AuthStateInterface } from "./models";
21
21
  declare class AuthAPI {
22
22
  static DEFAULT_STATE: AuthStateInterface;
23
23
  private _authState;
24
24
  private _client;
25
- constructor();
25
+ constructor(spaClient?: AsgardeoSPAClient);
26
26
  /**
27
27
  * Method to return Auth Client instance authentication state.
28
28
  *
@@ -133,6 +133,15 @@ declare class AuthAPI {
133
133
  * @return {Promise<string>} - A Promise that resolves with the access token.
134
134
  */
135
135
  getAccessToken(): Promise<string>;
136
+ /**
137
+ * This method return a Promise that resolves with the idp access token.
138
+ *
139
+ * **This method will not return the idp access token if the storage type is set to `webWorker`.**
140
+ * **This can be used to access the IDP access token when custom auth grant functionalities are used**
141
+ *
142
+ * @return {Promise<string>} - A Promise that resolves with the idp access token.
143
+ */
144
+ getIDPAccessToken(): Promise<string>;
136
145
  /**
137
146
  * This method refreshes the access token.
138
147
  *
@@ -1 +1 @@
1
- {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/api.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAEH,gBAAgB,EAChB,aAAa,EACb,MA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AI,GAC9C,OAAO,CAAC,aAAa,GAAG,OAAO,GAAG,SAAS,CAAC;CAmClD;AAYD,eAAe,OAAO,CAAC"}
@@ -15,18 +15,18 @@
15
15
  * specific language governing permissions and limitations
16
16
  * under the License.
17
17
  */
18
+ import { AsgardeoSPAClient } from "@asgardeo/auth-spa";
18
19
  import { FunctionComponent, PropsWithChildren, ReactNode } from "react";
19
20
  import { AuthParams } from ".";
20
- import AuthAPI from "./api";
21
21
  import { AuthContextInterface, AuthReactConfig } from "./models";
22
- declare const AuthClient: AuthAPI;
23
22
  interface AuthProviderPropsInterface {
24
23
  config: AuthReactConfig;
25
24
  fallback?: ReactNode;
26
25
  getAuthParams?: () => Promise<AuthParams>;
27
26
  onSignOut?: () => void;
27
+ spaclient?: AsgardeoSPAClient;
28
28
  }
29
29
  declare const AuthProvider: FunctionComponent<PropsWithChildren<AuthProviderPropsInterface>>;
30
30
  declare const useAuthContext: () => AuthContextInterface;
31
- export { AuthClient, AuthProvider, useAuthContext };
31
+ export { AuthProvider, useAuthContext };
32
32
  //# sourceMappingURL=authenticate.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"authenticate.d.ts","sourceRoot":"","sources":["../../src/authenticate.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAaH,OAAc,EACV,iBAAiB,EACjB,iBAAiB,EACjB,SAAS,EAMZ,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,UAAU,EAAe,MAAM,GAAG,CAAC;AAC5C,OAAO,OAAO,MAAM,OAAO,CAAC;AAC5B,OAAO,EAAE,oBAAoB,EAAE,eAAe,EAAsB,MAAM,UAAU,CAAC;AASrF,QAAA,MAAM,UAAU,SAAgB,CAAC;AAOjC,UAAU,0BAA0B;IAChC,MAAM,EAAE,eAAe,CAAC;IACxB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,OAAO,CAAC,UAAU,CAAC,CAAC;IAC1C,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;CAC1B;AAED,QAAA,MAAM,YAAY,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,0BAA0B,CAAC,CAwLlF,CAAC;AAEF,QAAA,MAAM,cAAc,QAAO,oBAE1B,CAAC;AAEF,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,cAAc,EAAE,CAAC"}
1
+ {"version":3,"file":"authenticate.d.ts","sourceRoot":"","sources":["../../src/authenticate.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAEH,iBAAiB,EAQpB,MAAM,oBAAoB,CAAC;AAE5B,OAAc,EACV,iBAAiB,EACjB,iBAAiB,EACjB,SAAS,EAMZ,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,UAAU,EAAe,MAAM,GAAG,CAAC;AAE5C,OAAO,EAAE,oBAAoB,EAAE,eAAe,EAAsB,MAAM,UAAU,CAAC;AAcrF,UAAU,0BAA0B;IAChC,MAAM,EAAE,eAAe,CAAC;IACxB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,OAAO,CAAC,UAAU,CAAC,CAAC;IAC1C,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,SAAS,CAAC,EAAE,iBAAiB,CAAC;CACjC;AAED,QAAA,MAAM,YAAY,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,0BAA0B,CAAC,CA2LlF,CAAC;AAEF,QAAA,MAAM,cAAc,QAAO,oBAE1B,CAAC;AAEF,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,CAAC"}
@@ -166,54 +166,14 @@
166
166
  "signature": "d7d1029d1d337c48eeebca66c68d0af0cdc0f8009dda2865825e1698cbd8d0e1",
167
167
  "affectsGlobalScope": false
168
168
  },
169
- "../../node_modules/@asgardeo/auth-js/dist/src/models/oidc-provider-meta-data.d.ts": {
170
- "version": "a9fdb350afd0351e3bfa907afec88284c410220b4d1649dd6f4a3ad2fd6dac5d",
171
- "signature": "a9fdb350afd0351e3bfa907afec88284c410220b4d1649dd6f4a3ad2fd6dac5d",
172
- "affectsGlobalScope": false
173
- },
174
169
  "../../node_modules/@asgardeo/auth-js/dist/src/constants/client-config.d.ts": {
175
170
  "version": "6009474c65328718bc827d496d956b2fc7e31a3f643e0f260893b7d976619b80",
176
171
  "signature": "6009474c65328718bc827d496d956b2fc7e31a3f643e0f260893b7d976619b80",
177
172
  "affectsGlobalScope": false
178
173
  },
179
- "../../node_modules/@asgardeo/auth-js/dist/src/constants/oidc-endpoints.d.ts": {
180
- "version": "e7c931bccb038847bb2feada651326056ee7dcb763e01d82dcea4709a29c2a4b",
181
- "signature": "e7c931bccb038847bb2feada651326056ee7dcb763e01d82dcea4709a29c2a4b",
182
- "affectsGlobalScope": false
183
- },
184
- "../../node_modules/@asgardeo/auth-js/dist/src/constants/custom-grant-template-tags.d.ts": {
185
- "version": "2ec162d98a48073f00821108eec20151906d383665ce91278aed4a1e8c30a199",
186
- "signature": "2ec162d98a48073f00821108eec20151906d383665ce91278aed4a1e8c30a199",
187
- "affectsGlobalScope": false
188
- },
189
- "../../node_modules/@asgardeo/auth-js/dist/src/constants/data.d.ts": {
190
- "version": "030074650037a6e61cfb86ae3e22845464535b376736976eaca80d214c9d1286",
191
- "signature": "030074650037a6e61cfb86ae3e22845464535b376736976eaca80d214c9d1286",
192
- "affectsGlobalScope": false
193
- },
194
- "../../node_modules/@asgardeo/auth-js/dist/src/constants/parameters.d.ts": {
195
- "version": "e092862984e6e011409c1103659a28966167674bf9af55539293497ce4b8aaeb",
196
- "signature": "e092862984e6e011409c1103659a28966167674bf9af55539293497ce4b8aaeb",
197
- "affectsGlobalScope": false
198
- },
199
- "../../node_modules/@asgardeo/auth-js/dist/src/constants/scopes.d.ts": {
200
- "version": "1408465b7ef31763e5827b443a38d83d125e5d9ccb60ed23c49cbd5e16bb35e4",
201
- "signature": "1408465b7ef31763e5827b443a38d83d125e5d9ccb60ed23c49cbd5e16bb35e4",
202
- "affectsGlobalScope": false
203
- },
204
- "../../node_modules/@asgardeo/auth-js/dist/src/constants/environments.d.ts": {
205
- "version": "1d5f29a8df2a26f1f2a27aafc55e89708cb5648a57464d2424eafa795694e188",
206
- "signature": "1d5f29a8df2a26f1f2a27aafc55e89708cb5648a57464d2424eafa795694e188",
207
- "affectsGlobalScope": false
208
- },
209
- "../../node_modules/@asgardeo/auth-js/dist/src/constants/fetch.d.ts": {
210
- "version": "8c590f6cab70aaa58ff3a785019b4065b0ad86aaed35b06f1e608511f0342066",
211
- "signature": "8c590f6cab70aaa58ff3a785019b4065b0ad86aaed35b06f1e608511f0342066",
212
- "affectsGlobalScope": false
213
- },
214
- "../../node_modules/@asgardeo/auth-js/dist/src/constants/index.d.ts": {
215
- "version": "37e3dd4b6f6bbfd099d48fd08fe31b000e7a150cf5fa4823e79e6d0eef5038d7",
216
- "signature": "37e3dd4b6f6bbfd099d48fd08fe31b000e7a150cf5fa4823e79e6d0eef5038d7",
174
+ "../../node_modules/@asgardeo/auth-js/dist/src/models/oidc-provider-meta-data.d.ts": {
175
+ "version": "a9fdb350afd0351e3bfa907afec88284c410220b4d1649dd6f4a3ad2fd6dac5d",
176
+ "signature": "a9fdb350afd0351e3bfa907afec88284c410220b4d1649dd6f4a3ad2fd6dac5d",
217
177
  "affectsGlobalScope": false
218
178
  },
219
179
  "../../node_modules/@asgardeo/auth-js/dist/src/models/client-config.d.ts": {
@@ -266,9 +226,49 @@
266
226
  "signature": "f410aadd8539321d799a9030d81481fdba68e00eb96911c5da1be1169640efaf",
267
227
  "affectsGlobalScope": false
268
228
  },
229
+ "../../node_modules/@asgardeo/auth-js/dist/src/constants/oidc-endpoints.d.ts": {
230
+ "version": "e7c931bccb038847bb2feada651326056ee7dcb763e01d82dcea4709a29c2a4b",
231
+ "signature": "e7c931bccb038847bb2feada651326056ee7dcb763e01d82dcea4709a29c2a4b",
232
+ "affectsGlobalScope": false
233
+ },
234
+ "../../node_modules/@asgardeo/auth-js/dist/src/constants/custom-grant-template-tags.d.ts": {
235
+ "version": "2ec162d98a48073f00821108eec20151906d383665ce91278aed4a1e8c30a199",
236
+ "signature": "2ec162d98a48073f00821108eec20151906d383665ce91278aed4a1e8c30a199",
237
+ "affectsGlobalScope": false
238
+ },
239
+ "../../node_modules/@asgardeo/auth-js/dist/src/constants/data.d.ts": {
240
+ "version": "030074650037a6e61cfb86ae3e22845464535b376736976eaca80d214c9d1286",
241
+ "signature": "030074650037a6e61cfb86ae3e22845464535b376736976eaca80d214c9d1286",
242
+ "affectsGlobalScope": false
243
+ },
244
+ "../../node_modules/@asgardeo/auth-js/dist/src/constants/parameters.d.ts": {
245
+ "version": "e092862984e6e011409c1103659a28966167674bf9af55539293497ce4b8aaeb",
246
+ "signature": "e092862984e6e011409c1103659a28966167674bf9af55539293497ce4b8aaeb",
247
+ "affectsGlobalScope": false
248
+ },
249
+ "../../node_modules/@asgardeo/auth-js/dist/src/constants/scopes.d.ts": {
250
+ "version": "1408465b7ef31763e5827b443a38d83d125e5d9ccb60ed23c49cbd5e16bb35e4",
251
+ "signature": "1408465b7ef31763e5827b443a38d83d125e5d9ccb60ed23c49cbd5e16bb35e4",
252
+ "affectsGlobalScope": false
253
+ },
254
+ "../../node_modules/@asgardeo/auth-js/dist/src/constants/environments.d.ts": {
255
+ "version": "1d5f29a8df2a26f1f2a27aafc55e89708cb5648a57464d2424eafa795694e188",
256
+ "signature": "1d5f29a8df2a26f1f2a27aafc55e89708cb5648a57464d2424eafa795694e188",
257
+ "affectsGlobalScope": false
258
+ },
259
+ "../../node_modules/@asgardeo/auth-js/dist/src/constants/fetch.d.ts": {
260
+ "version": "8c590f6cab70aaa58ff3a785019b4065b0ad86aaed35b06f1e608511f0342066",
261
+ "signature": "8c590f6cab70aaa58ff3a785019b4065b0ad86aaed35b06f1e608511f0342066",
262
+ "affectsGlobalScope": false
263
+ },
264
+ "../../node_modules/@asgardeo/auth-js/dist/src/constants/index.d.ts": {
265
+ "version": "37e3dd4b6f6bbfd099d48fd08fe31b000e7a150cf5fa4823e79e6d0eef5038d7",
266
+ "signature": "37e3dd4b6f6bbfd099d48fd08fe31b000e7a150cf5fa4823e79e6d0eef5038d7",
267
+ "affectsGlobalScope": false
268
+ },
269
269
  "../../node_modules/@asgardeo/auth-js/dist/src/data/data-layer.d.ts": {
270
- "version": "a4cc464ee100dd3ccffca3f2aece27847c37293be504ad93a666632d2c8d1c28",
271
- "signature": "a4cc464ee100dd3ccffca3f2aece27847c37293be504ad93a666632d2c8d1c28",
270
+ "version": "4b700286e3baa0a17e0aa2899a682adbe1b1aee1280ca426617311d6e54205d4",
271
+ "signature": "4b700286e3baa0a17e0aa2899a682adbe1b1aee1280ca426617311d6e54205d4",
272
272
  "affectsGlobalScope": false
273
273
  },
274
274
  "../../node_modules/@asgardeo/auth-js/dist/src/data/index.d.ts": {
@@ -346,14 +346,44 @@
346
346
  "signature": "d233368a4b9a59bce4439e490980cef17e9db9836a184fd39500e5c76dae3120",
347
347
  "affectsGlobalScope": false
348
348
  },
349
+ "../../node_modules/@asgardeo/auth-spa/dist/src/helpers/spa-helper.d.ts": {
350
+ "version": "371aaafa332f643058936d0d895525143d3defda81ead93eb3f83594a83a3d6c",
351
+ "signature": "371aaafa332f643058936d0d895525143d3defda81ead93eb3f83594a83a3d6c",
352
+ "affectsGlobalScope": false
353
+ },
349
354
  "../../node_modules/@asgardeo/auth-spa/dist/src/http-client/models/axios-http-client.d.ts": {
350
355
  "version": "8d5274fc4535526a8a2ab195663cf378621f3f9525d32fd505ccc0692d33de20",
351
356
  "signature": "8d5274fc4535526a8a2ab195663cf378621f3f9525d32fd505ccc0692d33de20",
352
357
  "affectsGlobalScope": false
353
358
  },
359
+ "../../node_modules/@asgardeo/auth-spa/dist/src/http-client/models/http-client.d.ts": {
360
+ "version": "c4da79abf98dc71ab379fd5af692a2b5fd655915c2da4ea5e47bd4d54d1f4f15",
361
+ "signature": "c4da79abf98dc71ab379fd5af692a2b5fd655915c2da4ea5e47bd4d54d1f4f15",
362
+ "affectsGlobalScope": false
363
+ },
364
+ "../../node_modules/@asgardeo/auth-spa/dist/src/http-client/models/index.d.ts": {
365
+ "version": "3c2bc6197809fdb448e8346ced11cc6f476b131676666ea58eed9587d9e0f203",
366
+ "signature": "3c2bc6197809fdb448e8346ced11cc6f476b131676666ea58eed9587d9e0f203",
367
+ "affectsGlobalScope": false
368
+ },
369
+ "../../node_modules/@asgardeo/auth-spa/dist/src/http-client/clients/axios-http-client.d.ts": {
370
+ "version": "d72bf1bf5de6c2f64af50ba4742c30ef82737da23da9131174ea702ba5fbada6",
371
+ "signature": "d72bf1bf5de6c2f64af50ba4742c30ef82737da23da9131174ea702ba5fbada6",
372
+ "affectsGlobalScope": false
373
+ },
374
+ "../../node_modules/@asgardeo/auth-spa/dist/src/http-client/clients/index.d.ts": {
375
+ "version": "9eac469b0958436c8b7f109526d13dee8ba56b7bebf0c0aa7a04460d352641dc",
376
+ "signature": "9eac469b0958436c8b7f109526d13dee8ba56b7bebf0c0aa7a04460d352641dc",
377
+ "affectsGlobalScope": false
378
+ },
379
+ "../../node_modules/@asgardeo/auth-spa/dist/src/http-client/index.d.ts": {
380
+ "version": "e9754ea017ebaf1b9085af9a0278b10899f1c8dc6e015d947b1d77ce9e1ffb79",
381
+ "signature": "e9754ea017ebaf1b9085af9a0278b10899f1c8dc6e015d947b1d77ce9e1ffb79",
382
+ "affectsGlobalScope": false
383
+ },
354
384
  "../../node_modules/@asgardeo/auth-spa/dist/src/models/client.d.ts": {
355
- "version": "f6b3c72c04c8852497e03c7b7fb5316cac48cd4b5e11e1617ba757253d0a7de7",
356
- "signature": "f6b3c72c04c8852497e03c7b7fb5316cac48cd4b5e11e1617ba757253d0a7de7",
385
+ "version": "4466580b23246d1622a2479dd5b3eafdd87bb5ff01c1e4e698450fbc99fc28a3",
386
+ "signature": "4466580b23246d1622a2479dd5b3eafdd87bb5ff01c1e4e698450fbc99fc28a3",
357
387
  "affectsGlobalScope": false
358
388
  },
359
389
  "../../node_modules/@asgardeo/auth-spa/dist/src/models/message.d.ts": {
@@ -401,34 +431,29 @@
401
431
  "signature": "fa112e4c4772e1ae041fab48ee4bc7a7f3d48874ecc89ee50688fa9fb7639189",
402
432
  "affectsGlobalScope": false
403
433
  },
404
- "../../node_modules/@asgardeo/auth-spa/dist/src/http-client/models/http-client.d.ts": {
405
- "version": "c4da79abf98dc71ab379fd5af692a2b5fd655915c2da4ea5e47bd4d54d1f4f15",
406
- "signature": "c4da79abf98dc71ab379fd5af692a2b5fd655915c2da4ea5e47bd4d54d1f4f15",
434
+ "../../node_modules/@asgardeo/auth-spa/dist/src/models/request-custom-grant.d.ts": {
435
+ "version": "4bd3315111a3e5da8b4e4bb6eae0004ff2c0dca065724813379b95c187e071a4",
436
+ "signature": "4bd3315111a3e5da8b4e4bb6eae0004ff2c0dca065724813379b95c187e071a4",
407
437
  "affectsGlobalScope": false
408
438
  },
409
- "../../node_modules/@asgardeo/auth-spa/dist/src/http-client/models/index.d.ts": {
410
- "version": "3c2bc6197809fdb448e8346ced11cc6f476b131676666ea58eed9587d9e0f203",
411
- "signature": "3c2bc6197809fdb448e8346ced11cc6f476b131676666ea58eed9587d9e0f203",
412
- "affectsGlobalScope": false
413
- },
414
- "../../node_modules/@asgardeo/auth-spa/dist/src/http-client/clients/axios-http-client.d.ts": {
415
- "version": "d72bf1bf5de6c2f64af50ba4742c30ef82737da23da9131174ea702ba5fbada6",
416
- "signature": "d72bf1bf5de6c2f64af50ba4742c30ef82737da23da9131174ea702ba5fbada6",
439
+ "../../node_modules/@asgardeo/auth-spa/dist/src/helpers/authentication-helper.d.ts": {
440
+ "version": "72fb5e69079b6456aacf077706d4d43e83082fd796adbea97167b52d09cc781b",
441
+ "signature": "72fb5e69079b6456aacf077706d4d43e83082fd796adbea97167b52d09cc781b",
417
442
  "affectsGlobalScope": false
418
443
  },
419
- "../../node_modules/@asgardeo/auth-spa/dist/src/http-client/clients/index.d.ts": {
420
- "version": "9eac469b0958436c8b7f109526d13dee8ba56b7bebf0c0aa7a04460d352641dc",
421
- "signature": "9eac469b0958436c8b7f109526d13dee8ba56b7bebf0c0aa7a04460d352641dc",
444
+ "../../node_modules/@asgardeo/auth-spa/dist/src/helpers/session-management-helper.d.ts": {
445
+ "version": "8b577b67db276e14214292bcbeb1f66d76f98c86372dabf87e7729abe2f615af",
446
+ "signature": "8b577b67db276e14214292bcbeb1f66d76f98c86372dabf87e7729abe2f615af",
422
447
  "affectsGlobalScope": false
423
448
  },
424
- "../../node_modules/@asgardeo/auth-spa/dist/src/http-client/index.d.ts": {
425
- "version": "e9754ea017ebaf1b9085af9a0278b10899f1c8dc6e015d947b1d77ce9e1ffb79",
426
- "signature": "e9754ea017ebaf1b9085af9a0278b10899f1c8dc6e015d947b1d77ce9e1ffb79",
449
+ "../../node_modules/@asgardeo/auth-spa/dist/src/helpers/index.d.ts": {
450
+ "version": "2ffdf100a5fe7b90f9ccd37fd090d908f63e13ddacbe56438a9c59c61e494ecd",
451
+ "signature": "2ffdf100a5fe7b90f9ccd37fd090d908f63e13ddacbe56438a9c59c61e494ecd",
427
452
  "affectsGlobalScope": false
428
453
  },
429
454
  "../../node_modules/@asgardeo/auth-spa/dist/src/client.d.ts": {
430
- "version": "6e80b0fc9fbc70627bd97caa6f7d90ec09f7433580c8da52a422c8d90c2e9228",
431
- "signature": "6e80b0fc9fbc70627bd97caa6f7d90ec09f7433580c8da52a422c8d90c2e9228",
455
+ "version": "4f7a5122a53d25a36fc7886c6a8d5d592d88a56832f1b874e504c2e3dbc82127",
456
+ "signature": "4f7a5122a53d25a36fc7886c6a8d5d592d88a56832f1b874e504c2e3dbc82127",
432
457
  "affectsGlobalScope": false
433
458
  },
434
459
  "../../node_modules/@asgardeo/auth-spa/dist/src/utils/spa-utils.d.ts": {
@@ -436,9 +461,14 @@
436
461
  "signature": "2d5ad57e9782114fb8605b0a1f3d81ae57576e0b3a7b7c93244c0ced0c73f80b",
437
462
  "affectsGlobalScope": false
438
463
  },
464
+ "../../node_modules/@asgardeo/auth-spa/dist/src/worker/worker-receiver.d.ts": {
465
+ "version": "44cb69df71415c13846d30faeef445a6ccc7fc1c8c9c7c94e253cd0e60ec2b90",
466
+ "signature": "44cb69df71415c13846d30faeef445a6ccc7fc1c8c9c7c94e253cd0e60ec2b90",
467
+ "affectsGlobalScope": false
468
+ },
439
469
  "../../node_modules/@asgardeo/auth-spa/dist/src/public-api.d.ts": {
440
- "version": "09d89060e36f9f5461e84fc8571b56c364aade1b61a1530b9aa31d0225b478f6",
441
- "signature": "09d89060e36f9f5461e84fc8571b56c364aade1b61a1530b9aa31d0225b478f6",
470
+ "version": "92ed0445ee00745cf8aaba564923118825d2dab80ce93e56bd1a698b1345dcfb",
471
+ "signature": "92ed0445ee00745cf8aaba564923118825d2dab80ce93e56bd1a698b1345dcfb",
442
472
  "affectsGlobalScope": false
443
473
  },
444
474
  "../../node_modules/@asgardeo/auth-spa/dist/src/index.d.ts": {
@@ -456,8 +486,8 @@
456
486
  "affectsGlobalScope": false
457
487
  },
458
488
  "../src/api.ts": {
459
- "version": "3362c465b2e40ca2259febd3f6a958ea24d16c5c48a3660a0fdcb7e89f423d20",
460
- "signature": "6543a2d06b6405894a34b0ed2f0ca7cf0266858163d06d9d04c6c4e64590a029",
489
+ "version": "85c950aa29253350574023f3f7c8c6c1107916b5a89f4df5a2dcdd29e1249719",
490
+ "signature": "7c164e6cfd791b1279ec72374befcc44740caaf09c0dd43ba233686aa3730ad7",
461
491
  "affectsGlobalScope": false
462
492
  },
463
493
  "../../node_modules/@types/react/global.d.ts": {
@@ -571,8 +601,8 @@
571
601
  "affectsGlobalScope": false
572
602
  },
573
603
  "../src/authenticate.tsx": {
574
- "version": "7cd2b8984b96368015a5185a857894bd5fca1fd6f6a20da9e1bb58ebada200a8",
575
- "signature": "336cb282ec49398aece02113130600346cc39c172377aad24e5cb639ce3d226b",
604
+ "version": "a56c49794ca40b4b45d3a9fa7980a498159904d8de05fd14aa55bc434cb1af63",
605
+ "signature": "02588094ffee1e4b5883048353191ecbd2413b2080ccd47cbb8f637f35b2c58c",
576
606
  "affectsGlobalScope": false
577
607
  },
578
608
  "../src/reducer.ts": {
@@ -1200,6 +1230,7 @@
1200
1230
  "../../node_modules/@asgardeo/auth-js/dist/src/models/index.d.ts"
1201
1231
  ],
1202
1232
  "../../node_modules/@asgardeo/auth-js/dist/src/data/data-layer.d.ts": [
1233
+ "../../node_modules/@asgardeo/auth-js/dist/src/constants/index.d.ts",
1203
1234
  "../../node_modules/@asgardeo/auth-js/dist/src/models/index.d.ts"
1204
1235
  ],
1205
1236
  "../../node_modules/@asgardeo/auth-js/dist/src/data/index.d.ts": [
@@ -1251,6 +1282,7 @@
1251
1282
  "../../node_modules/@asgardeo/auth-spa/dist/src/client.d.ts": [
1252
1283
  "../../node_modules/@asgardeo/auth-js/dist/src/index.d.ts",
1253
1284
  "../../node_modules/@asgardeo/auth-spa/dist/src/constants/index.d.ts",
1285
+ "../../node_modules/@asgardeo/auth-spa/dist/src/helpers/index.d.ts",
1254
1286
  "../../node_modules/@asgardeo/auth-spa/dist/src/http-client/index.d.ts",
1255
1287
  "../../node_modules/@asgardeo/auth-spa/dist/src/models/index.d.ts"
1256
1288
  ],
@@ -1262,6 +1294,26 @@
1262
1294
  "../../node_modules/@asgardeo/auth-spa/dist/src/constants/session-management.d.ts",
1263
1295
  "../../node_modules/@asgardeo/auth-spa/dist/src/constants/storage.d.ts"
1264
1296
  ],
1297
+ "../../node_modules/@asgardeo/auth-spa/dist/src/helpers/authentication-helper.d.ts": [
1298
+ "../../node_modules/@asgardeo/auth-js/dist/src/index.d.ts",
1299
+ "../../node_modules/@asgardeo/auth-spa/dist/src/helpers/spa-helper.d.ts",
1300
+ "../../node_modules/@asgardeo/auth-spa/dist/src/index.d.ts",
1301
+ "../../node_modules/@asgardeo/auth-spa/dist/src/models/index.d.ts",
1302
+ "../../node_modules/@asgardeo/auth-spa/dist/src/models/request-custom-grant.d.ts"
1303
+ ],
1304
+ "../../node_modules/@asgardeo/auth-spa/dist/src/helpers/index.d.ts": [
1305
+ "../../node_modules/@asgardeo/auth-spa/dist/src/helpers/authentication-helper.d.ts",
1306
+ "../../node_modules/@asgardeo/auth-spa/dist/src/helpers/session-management-helper.d.ts",
1307
+ "../../node_modules/@asgardeo/auth-spa/dist/src/helpers/spa-helper.d.ts"
1308
+ ],
1309
+ "../../node_modules/@asgardeo/auth-spa/dist/src/helpers/session-management-helper.d.ts": [
1310
+ "../../node_modules/@asgardeo/auth-spa/dist/src/constants/index.d.ts",
1311
+ "../../node_modules/@asgardeo/auth-spa/dist/src/models/index.d.ts"
1312
+ ],
1313
+ "../../node_modules/@asgardeo/auth-spa/dist/src/helpers/spa-helper.d.ts": [
1314
+ "../../node_modules/@asgardeo/auth-js/dist/src/index.d.ts",
1315
+ "../../node_modules/@asgardeo/auth-spa/dist/src/index.d.ts"
1316
+ ],
1265
1317
  "../../node_modules/@asgardeo/auth-spa/dist/src/http-client/clients/axios-http-client.d.ts": [
1266
1318
  "../../node_modules/@asgardeo/auth-spa/dist/src/http-client/models/index.d.ts",
1267
1319
  "../../node_modules/@asgardeo/auth-spa/dist/src/index.d.ts"
@@ -1313,6 +1365,9 @@
1313
1365
  "../../node_modules/@asgardeo/auth-spa/dist/src/models/message.d.ts": [
1314
1366
  "../../node_modules/@asgardeo/auth-spa/dist/src/constants/index.d.ts"
1315
1367
  ],
1368
+ "../../node_modules/@asgardeo/auth-spa/dist/src/models/request-custom-grant.d.ts": [
1369
+ "../../node_modules/@asgardeo/auth-js/dist/src/index.d.ts"
1370
+ ],
1316
1371
  "../../node_modules/@asgardeo/auth-spa/dist/src/models/session-management-helper.d.ts": [
1317
1372
  "../../node_modules/@asgardeo/auth-spa/dist/src/index.d.ts"
1318
1373
  ],
@@ -1329,12 +1384,20 @@
1329
1384
  "../../node_modules/@asgardeo/auth-spa/dist/src/client.d.ts",
1330
1385
  "../../node_modules/@asgardeo/auth-spa/dist/src/constants/hooks.d.ts",
1331
1386
  "../../node_modules/@asgardeo/auth-spa/dist/src/constants/storage.d.ts",
1387
+ "../../node_modules/@asgardeo/auth-spa/dist/src/helpers/authentication-helper.d.ts",
1388
+ "../../node_modules/@asgardeo/auth-spa/dist/src/helpers/spa-helper.d.ts",
1332
1389
  "../../node_modules/@asgardeo/auth-spa/dist/src/models/index.d.ts",
1333
- "../../node_modules/@asgardeo/auth-spa/dist/src/utils/spa-utils.d.ts"
1390
+ "../../node_modules/@asgardeo/auth-spa/dist/src/utils/spa-utils.d.ts",
1391
+ "../../node_modules/@asgardeo/auth-spa/dist/src/worker/worker-receiver.d.ts"
1334
1392
  ],
1335
1393
  "../../node_modules/@asgardeo/auth-spa/dist/src/utils/spa-utils.d.ts": [
1336
1394
  "../../node_modules/@asgardeo/auth-spa/dist/src/index.d.ts"
1337
1395
  ],
1396
+ "../../node_modules/@asgardeo/auth-spa/dist/src/worker/worker-receiver.d.ts": [
1397
+ "../../node_modules/@asgardeo/auth-js/dist/src/index.d.ts",
1398
+ "../../node_modules/@asgardeo/auth-spa/dist/src/helpers/index.d.ts",
1399
+ "../../node_modules/@asgardeo/auth-spa/dist/src/models/index.d.ts"
1400
+ ],
1338
1401
  "../../node_modules/@asgardeo/auth-spa/src/models/request-custom-grant.ts": [
1339
1402
  "../../node_modules/@asgardeo/auth-js/dist/src/index.d.ts"
1340
1403
  ],
@@ -1650,8 +1713,8 @@
1650
1713
  "../src/models.ts"
1651
1714
  ],
1652
1715
  "../src/authenticate.tsx": [
1716
+ "../../node_modules/@asgardeo/auth-spa/dist/src/index.d.ts",
1653
1717
  "../../node_modules/@types/react/index.d.ts",
1654
- "../src/api.ts",
1655
1718
  "../src/index.ts",
1656
1719
  "../src/models.ts"
1657
1720
  ],
@@ -1701,6 +1764,7 @@
1701
1764
  "../../node_modules/@asgardeo/auth-js/dist/src/models/index.d.ts"
1702
1765
  ],
1703
1766
  "../../node_modules/@asgardeo/auth-js/dist/src/data/data-layer.d.ts": [
1767
+ "../../node_modules/@asgardeo/auth-js/dist/src/constants/index.d.ts",
1704
1768
  "../../node_modules/@asgardeo/auth-js/dist/src/models/index.d.ts"
1705
1769
  ],
1706
1770
  "../../node_modules/@asgardeo/auth-js/dist/src/data/index.d.ts": [
@@ -1752,6 +1816,7 @@
1752
1816
  "../../node_modules/@asgardeo/auth-spa/dist/src/client.d.ts": [
1753
1817
  "../../node_modules/@asgardeo/auth-js/dist/src/index.d.ts",
1754
1818
  "../../node_modules/@asgardeo/auth-spa/dist/src/constants/index.d.ts",
1819
+ "../../node_modules/@asgardeo/auth-spa/dist/src/helpers/index.d.ts",
1755
1820
  "../../node_modules/@asgardeo/auth-spa/dist/src/http-client/index.d.ts",
1756
1821
  "../../node_modules/@asgardeo/auth-spa/dist/src/models/index.d.ts"
1757
1822
  ],
@@ -1763,6 +1828,26 @@
1763
1828
  "../../node_modules/@asgardeo/auth-spa/dist/src/constants/session-management.d.ts",
1764
1829
  "../../node_modules/@asgardeo/auth-spa/dist/src/constants/storage.d.ts"
1765
1830
  ],
1831
+ "../../node_modules/@asgardeo/auth-spa/dist/src/helpers/authentication-helper.d.ts": [
1832
+ "../../node_modules/@asgardeo/auth-js/dist/src/index.d.ts",
1833
+ "../../node_modules/@asgardeo/auth-spa/dist/src/helpers/spa-helper.d.ts",
1834
+ "../../node_modules/@asgardeo/auth-spa/dist/src/index.d.ts",
1835
+ "../../node_modules/@asgardeo/auth-spa/dist/src/models/index.d.ts",
1836
+ "../../node_modules/@asgardeo/auth-spa/dist/src/models/request-custom-grant.d.ts"
1837
+ ],
1838
+ "../../node_modules/@asgardeo/auth-spa/dist/src/helpers/index.d.ts": [
1839
+ "../../node_modules/@asgardeo/auth-spa/dist/src/helpers/authentication-helper.d.ts",
1840
+ "../../node_modules/@asgardeo/auth-spa/dist/src/helpers/session-management-helper.d.ts",
1841
+ "../../node_modules/@asgardeo/auth-spa/dist/src/helpers/spa-helper.d.ts"
1842
+ ],
1843
+ "../../node_modules/@asgardeo/auth-spa/dist/src/helpers/session-management-helper.d.ts": [
1844
+ "../../node_modules/@asgardeo/auth-spa/dist/src/constants/index.d.ts",
1845
+ "../../node_modules/@asgardeo/auth-spa/dist/src/models/index.d.ts"
1846
+ ],
1847
+ "../../node_modules/@asgardeo/auth-spa/dist/src/helpers/spa-helper.d.ts": [
1848
+ "../../node_modules/@asgardeo/auth-js/dist/src/index.d.ts",
1849
+ "../../node_modules/@asgardeo/auth-spa/dist/src/index.d.ts"
1850
+ ],
1766
1851
  "../../node_modules/@asgardeo/auth-spa/dist/src/http-client/clients/axios-http-client.d.ts": [
1767
1852
  "../../node_modules/@asgardeo/auth-spa/dist/src/http-client/models/index.d.ts",
1768
1853
  "../../node_modules/@asgardeo/auth-spa/dist/src/index.d.ts"
@@ -1814,6 +1899,9 @@
1814
1899
  "../../node_modules/@asgardeo/auth-spa/dist/src/models/message.d.ts": [
1815
1900
  "../../node_modules/@asgardeo/auth-spa/dist/src/constants/index.d.ts"
1816
1901
  ],
1902
+ "../../node_modules/@asgardeo/auth-spa/dist/src/models/request-custom-grant.d.ts": [
1903
+ "../../node_modules/@asgardeo/auth-js/dist/src/index.d.ts"
1904
+ ],
1817
1905
  "../../node_modules/@asgardeo/auth-spa/dist/src/models/session-management-helper.d.ts": [
1818
1906
  "../../node_modules/@asgardeo/auth-spa/dist/src/index.d.ts"
1819
1907
  ],
@@ -1830,12 +1918,20 @@
1830
1918
  "../../node_modules/@asgardeo/auth-spa/dist/src/client.d.ts",
1831
1919
  "../../node_modules/@asgardeo/auth-spa/dist/src/constants/hooks.d.ts",
1832
1920
  "../../node_modules/@asgardeo/auth-spa/dist/src/constants/storage.d.ts",
1921
+ "../../node_modules/@asgardeo/auth-spa/dist/src/helpers/authentication-helper.d.ts",
1922
+ "../../node_modules/@asgardeo/auth-spa/dist/src/helpers/spa-helper.d.ts",
1833
1923
  "../../node_modules/@asgardeo/auth-spa/dist/src/models/index.d.ts",
1834
- "../../node_modules/@asgardeo/auth-spa/dist/src/utils/spa-utils.d.ts"
1924
+ "../../node_modules/@asgardeo/auth-spa/dist/src/utils/spa-utils.d.ts",
1925
+ "../../node_modules/@asgardeo/auth-spa/dist/src/worker/worker-receiver.d.ts"
1835
1926
  ],
1836
1927
  "../../node_modules/@asgardeo/auth-spa/dist/src/utils/spa-utils.d.ts": [
1837
1928
  "../../node_modules/@asgardeo/auth-spa/dist/src/index.d.ts"
1838
1929
  ],
1930
+ "../../node_modules/@asgardeo/auth-spa/dist/src/worker/worker-receiver.d.ts": [
1931
+ "../../node_modules/@asgardeo/auth-js/dist/src/index.d.ts",
1932
+ "../../node_modules/@asgardeo/auth-spa/dist/src/helpers/index.d.ts",
1933
+ "../../node_modules/@asgardeo/auth-spa/dist/src/models/index.d.ts"
1934
+ ],
1839
1935
  "../../node_modules/@types/glob/index.d.ts": [
1840
1936
  "../../node_modules/@types/minimatch/index.d.ts",
1841
1937
  "../node_modules/@types/node/events.d.ts",
@@ -2108,6 +2204,10 @@
2108
2204
  "../../node_modules/@asgardeo/auth-spa/dist/src/constants/parameters.d.ts",
2109
2205
  "../../node_modules/@asgardeo/auth-spa/dist/src/constants/session-management.d.ts",
2110
2206
  "../../node_modules/@asgardeo/auth-spa/dist/src/constants/storage.d.ts",
2207
+ "../../node_modules/@asgardeo/auth-spa/dist/src/helpers/authentication-helper.d.ts",
2208
+ "../../node_modules/@asgardeo/auth-spa/dist/src/helpers/index.d.ts",
2209
+ "../../node_modules/@asgardeo/auth-spa/dist/src/helpers/session-management-helper.d.ts",
2210
+ "../../node_modules/@asgardeo/auth-spa/dist/src/helpers/spa-helper.d.ts",
2111
2211
  "../../node_modules/@asgardeo/auth-spa/dist/src/http-client/clients/axios-http-client.d.ts",
2112
2212
  "../../node_modules/@asgardeo/auth-spa/dist/src/http-client/clients/index.d.ts",
2113
2213
  "../../node_modules/@asgardeo/auth-spa/dist/src/http-client/index.d.ts",
@@ -2120,12 +2220,14 @@
2120
2220
  "../../node_modules/@asgardeo/auth-spa/dist/src/models/http-client.d.ts",
2121
2221
  "../../node_modules/@asgardeo/auth-spa/dist/src/models/index.d.ts",
2122
2222
  "../../node_modules/@asgardeo/auth-spa/dist/src/models/message.d.ts",
2223
+ "../../node_modules/@asgardeo/auth-spa/dist/src/models/request-custom-grant.d.ts",
2123
2224
  "../../node_modules/@asgardeo/auth-spa/dist/src/models/session-management-helper.d.ts",
2124
2225
  "../../node_modules/@asgardeo/auth-spa/dist/src/models/sign-in.d.ts",
2125
2226
  "../../node_modules/@asgardeo/auth-spa/dist/src/models/sign-out-error.d.ts",
2126
2227
  "../../node_modules/@asgardeo/auth-spa/dist/src/models/web-worker.d.ts",
2127
2228
  "../../node_modules/@asgardeo/auth-spa/dist/src/public-api.d.ts",
2128
2229
  "../../node_modules/@asgardeo/auth-spa/dist/src/utils/spa-utils.d.ts",
2230
+ "../../node_modules/@asgardeo/auth-spa/dist/src/worker/worker-receiver.d.ts",
2129
2231
  "../../node_modules/@asgardeo/auth-spa/src/models/request-custom-grant.ts",
2130
2232
  "../../node_modules/@types/eslint-visitor-keys/index.d.ts",
2131
2233
  "../../node_modules/@types/glob/index.d.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@asgardeo/auth-react",
3
- "version": "1.1.7",
3
+ "version": "1.1.8",
4
4
  "description": "Asgardeo Auth React SDK for React Applications.",
5
5
  "keywords": [
6
6
  "WSO2",
@@ -36,7 +36,7 @@
36
36
  "author": "WSO2",
37
37
  "license": "Apache-2.0",
38
38
  "dependencies": {
39
- "@asgardeo/auth-spa": "^0.3.8"
39
+ "@asgardeo/auth-spa": "^0.3.12"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@babel/cli": "^7.10.5",
package/src/api.ts CHANGED
@@ -39,8 +39,8 @@ class AuthAPI {
39
39
  private _authState = AuthAPI.DEFAULT_STATE;
40
40
  private _client: AsgardeoSPAClient;
41
41
 
42
- constructor() {
43
- this._client = AsgardeoSPAClient.getInstance();
42
+ constructor(spaClient?: AsgardeoSPAClient) {
43
+ this._client = spaClient ?? AsgardeoSPAClient.getInstance();
44
44
 
45
45
  this.getState = this.getState.bind(this);
46
46
  this.init = this.init.bind(this);
@@ -296,6 +296,18 @@ class AuthAPI {
296
296
  return this._client.getAccessToken();
297
297
  }
298
298
 
299
+ /**
300
+ * This method return a Promise that resolves with the idp access token.
301
+ *
302
+ * **This method will not return the idp access token if the storage type is set to `webWorker`.**
303
+ * **This can be used to access the IDP access token when custom auth grant functionalities are used**
304
+ *
305
+ * @return {Promise<string>} - A Promise that resolves with the idp access token.
306
+ */
307
+ public async getIDPAccessToken(): Promise<string> {
308
+ return this._client.getIDPAccessToken();
309
+ }
310
+
299
311
  /**
300
312
  * This method refreshes the access token.
301
313
  *
@@ -17,14 +17,15 @@
17
17
  */
18
18
 
19
19
  import {
20
+ AsgardeoAuthException,
21
+ AsgardeoSPAClient,
20
22
  AuthClientConfig,
21
23
  BasicUserInfo,
22
24
  FetchResponse,
23
25
  Hooks,
24
26
  HttpRequestConfig,
25
27
  SPAUtils,
26
- SignInConfig,
27
- AsgardeoAuthException
28
+ SignInConfig
28
29
  } from "@asgardeo/auth-spa";
29
30
  import { SPACustomGrantConfig } from "@asgardeo/auth-spa/src/models/request-custom-grant";
30
31
  import React, {
@@ -48,8 +49,6 @@ const defaultConfig: Partial<ReactConfig> = {
48
49
  disableTrySignInSilently: true
49
50
  };
50
51
 
51
- const AuthClient = new AuthAPI();
52
-
53
52
  /**
54
53
  * Authentication Context to hold global states in react components.
55
54
  */
@@ -60,16 +59,20 @@ interface AuthProviderPropsInterface {
60
59
  fallback?: ReactNode;
61
60
  getAuthParams?: () => Promise<AuthParams>;
62
61
  onSignOut?: () => void;
62
+ spaclient?: AsgardeoSPAClient;
63
63
  }
64
64
 
65
65
  const AuthProvider: FunctionComponent<PropsWithChildren<AuthProviderPropsInterface>> = (
66
66
  props: PropsWithChildren<AuthProviderPropsInterface>
67
67
  ) => {
68
+ const { children, config: passedConfig, fallback, getAuthParams, onSignOut, spaclient } = props;
69
+ const AuthClient: AuthAPI = useMemo(() => {
70
+ return new AuthAPI(spaclient);
71
+ }, [ props?.spaclient ]);
72
+
68
73
  const [ state, dispatch ] = useState<AuthStateInterface>(AuthClient.getState());
69
74
  const [ initialized, setInitialized ] = useState(false);
70
75
 
71
- const { children, config: passedConfig, fallback, getAuthParams, onSignOut } = props;
72
-
73
76
  const config = useMemo(
74
77
  (): AuthReactConfig => ({ ...defaultConfig, ...passedConfig }), [ passedConfig ]
75
78
  );
@@ -252,4 +255,4 @@ const useAuthContext = (): AuthContextInterface => {
252
255
  return useContext(AuthContext);
253
256
  };
254
257
 
255
- export { AuthClient, AuthProvider, useAuthContext };
258
+ export { AuthProvider, useAuthContext };