@asgardeo/auth-spa 3.0.6 → 3.1.0
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/README.md +10 -1
- package/dist/asgardeo-spa.production.esm.js +38 -15
- package/dist/asgardeo-spa.production.esm.js.map +1 -1
- package/dist/asgardeo-spa.production.js +33 -10
- package/dist/asgardeo-spa.production.js.map +1 -1
- package/dist/asgardeo-spa.production.min.js +1 -1
- package/dist/asgardeo-spa.production.min.js.map +1 -1
- package/dist/polyfilled/asgardeo-spa.production.esm.js +62 -39
- package/dist/polyfilled/asgardeo-spa.production.esm.js.map +1 -1
- package/dist/polyfilled/asgardeo-spa.production.js +37 -14
- package/dist/polyfilled/asgardeo-spa.production.js.map +1 -1
- package/dist/polyfilled/asgardeo-spa.production.min.js +1 -1
- package/dist/polyfilled/asgardeo-spa.production.min.js.map +1 -1
- package/dist/src/client.d.ts +3 -1
- package/dist/src/client.d.ts.map +1 -1
- package/dist/src/client.js +3 -3
- package/dist/src/client.js.map +1 -1
- package/dist/src/clients/main-thread-client.d.ts.map +1 -1
- package/dist/src/clients/main-thread-client.js +14 -6
- package/dist/src/clients/main-thread-client.js.map +1 -1
- package/dist/src/clients/web-worker-client.d.ts.map +1 -1
- package/dist/src/clients/web-worker-client.js +5 -4
- package/dist/src/clients/web-worker-client.js.map +1 -1
- package/dist/src/constants/storage.d.ts +1 -0
- package/dist/src/constants/storage.d.ts.map +1 -1
- package/dist/src/constants/storage.js +1 -0
- package/dist/src/constants/storage.js.map +1 -1
- package/dist/src/helpers/authentication-helper.d.ts +3 -1
- package/dist/src/helpers/authentication-helper.d.ts.map +1 -1
- package/dist/src/helpers/authentication-helper.js +2 -2
- package/dist/src/helpers/authentication-helper.js.map +1 -1
- package/dist/src/models/client.d.ts +6 -2
- package/dist/src/models/client.d.ts.map +1 -1
- package/dist/src/models/message.d.ts +3 -0
- package/dist/src/models/message.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/client.ts +13 -9
- package/src/clients/main-thread-client.ts +27 -6
- package/src/clients/web-worker-client.ts +12 -4
- package/src/constants/storage.ts +2 -0
- package/src/helpers/authentication-helper.ts +5 -2
- package/src/models/client.ts +8 -2
- package/src/models/message.ts +3 -0
package/README.md
CHANGED
|
@@ -334,7 +334,7 @@ auth.getBasicUserInfo().then((response) => {
|
|
|
334
334
|
### signIn
|
|
335
335
|
|
|
336
336
|
```typescript
|
|
337
|
-
signIn(config?: SignInConfig, authorizationCode?: string, sessionState?: string);
|
|
337
|
+
signIn(config?: SignInConfig, authorizationCode?: string, sessionState?: string, tokenRequestConfig?: { params: Record<string, unknown> });
|
|
338
338
|
```
|
|
339
339
|
|
|
340
340
|
#### Arguments
|
|
@@ -346,6 +346,15 @@ signIn(config?: SignInConfig, authorizationCode?: string, sessionState?: string)
|
|
|
346
346
|
The `signIn` method can be passed the authorization code as an argument, which will be used to obtain the token during the token-request phase of the method. This allows developers to use different response modes such as `form_post`. To learn more about the `form_post` method refer to the [Using the `form_post` response mode](#Using-the-form_post-response-mode) section. If you're using the `query` method, then the `signIn` method automatically obtains the authorization code from the URL.
|
|
347
347
|
3. sessionState?: `string` (optional)
|
|
348
348
|
The `signIn` method can be passed the session state as an argument, which will be used to obtain the token during the token-request phase of the method. This allows developers to use different response modes such as `form_post`. To learn more about the `form_post` method refer to the [Using the `form_post` response mode](#Using-the-form_post-response-mode) section. If you're using the `query` method, then the `signIn` method automatically obtains the session state from the URL.
|
|
349
|
+
4. tokenRequestConfig?: `object` (optional)
|
|
350
|
+
An optional configuration object that allows you to augment the token request.
|
|
351
|
+
- `params` (Mandatory): Key-value pairs to be sent as additional parameters in the token request payload.
|
|
352
|
+
|
|
353
|
+
```TypeScript
|
|
354
|
+
tokenRequestConfig: {
|
|
355
|
+
params: Record<string, unknown>
|
|
356
|
+
}
|
|
357
|
+
```
|
|
349
358
|
|
|
350
359
|
#### Description
|
|
351
360
|
|