@asgardeo/auth-react 1.1.10 → 1.1.11
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 +2 -2
- package/dist/main.js +46 -10
- package/dist/src/api.d.ts +7 -0
- package/dist/src/api.d.ts.map +1 -1
- package/dist/src/authenticate.d.ts +1 -1
- package/dist/src/authenticate.d.ts.map +1 -1
- package/dist/src/models.d.ts +1 -0
- package/dist/src/models.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +110 -26
- package/package.json +2 -2
- package/src/api.ts +10 -0
- package/src/authenticate.tsx +9 -4
- package/src/models.ts +1 -0
package/README.md
CHANGED
|
@@ -219,7 +219,7 @@ The provider takes a prop called `config` that accepts a config object of type [
|
|
|
219
219
|
|
|
220
220
|
In addition, the `fallback` prop is used to specify a fallback component that will be rendered when the user is not authenticated.
|
|
221
221
|
|
|
222
|
-
As an optional parameter, `
|
|
222
|
+
As an optional parameter, `plugin` parameter can be used to initialize the external Auth SPA Client.
|
|
223
223
|
|
|
224
224
|
The `AuthProvider` also automatically requests for the access token should the URL contain the `code` query parameter.
|
|
225
225
|
|
|
@@ -244,7 +244,7 @@ import { ChoreoSPAClient } from "@asgardeo/choreo-auth-spa";
|
|
|
244
244
|
|
|
245
245
|
export const MyApp = (): ReactElement => {
|
|
246
246
|
return (
|
|
247
|
-
<AuthProvider config={ config }
|
|
247
|
+
<AuthProvider config={ config } plugin={ ChoreoSPAClient.getInstance() }>
|
|
248
248
|
<Dashboard />
|
|
249
249
|
</AuthProvider>
|
|
250
250
|
)
|