oidc-react
Advanced tools
Comparing version 3.0.4 to 3.1.0
@@ -112,3 +112,3 @@ "use strict"; | ||
return props.userManager; | ||
var authority = props.authority, clientId = props.clientId, clientSecret = props.clientSecret, redirectUri = props.redirectUri, silentRedirectUri = props.silentRedirectUri, postLogoutRedirectUri = props.postLogoutRedirectUri, responseType = props.responseType, scope = props.scope, automaticSilentRenew = props.automaticSilentRenew, loadUserInfo = props.loadUserInfo, popupWindowFeatures = props.popupWindowFeatures, popupRedirectUri = props.popupRedirectUri, popupWindowTarget = props.popupWindowTarget, extraQueryParams = props.extraQueryParams; | ||
var authority = props.authority, clientId = props.clientId, clientSecret = props.clientSecret, redirectUri = props.redirectUri, silentRedirectUri = props.silentRedirectUri, postLogoutRedirectUri = props.postLogoutRedirectUri, responseType = props.responseType, scope = props.scope, automaticSilentRenew = props.automaticSilentRenew, loadUserInfo = props.loadUserInfo, popupWindowFeatures = props.popupWindowFeatures, popupRedirectUri = props.popupRedirectUri, popupWindowTarget = props.popupWindowTarget, extraQueryParams = props.extraQueryParams, metadata = props.metadata; | ||
return new oidc_client_ts_1.UserManager({ | ||
@@ -129,2 +129,3 @@ authority: authority || '', | ||
extraQueryParams: extraQueryParams, | ||
metadata: metadata, | ||
}); | ||
@@ -131,0 +132,0 @@ }; |
@@ -1,2 +0,2 @@ | ||
import { UserManager, User, PopupWindowFeatures, SigninRedirectArgs, SignoutRedirectArgs } from 'oidc-client-ts'; | ||
import { UserManager, User, PopupWindowFeatures, SigninRedirectArgs, SignoutRedirectArgs, OidcMetadata } from 'oidc-client-ts'; | ||
export interface Location { | ||
@@ -34,2 +34,6 @@ search: string; | ||
/** | ||
* Manually set metadata if CORS is not configured on the OIDC/OAuth2 provider. | ||
*/ | ||
metadata?: Partial<OidcMetadata>; | ||
/** | ||
* Extra query params passed to the authorization url. | ||
@@ -36,0 +40,0 @@ */ |
@@ -6,2 +6,9 @@ # Changelog | ||
## [3.1.0](https://github.com/bjerkio/oidc-react/compare/v3.0.4...v3.1.0) (2023-04-21) | ||
### Features | ||
* add `metadata` parameter to AuthContext ([1e6703b](https://github.com/bjerkio/oidc-react/commit/1e6703b11a8eda0ced7e76cd9e8a27b5abb902f9)) | ||
## [3.0.4](https://github.com/bjerkio/oidc-react/compare/oidc-react-v3.0.4...oidc-react-v3.0.4) (2023-04-10) | ||
@@ -8,0 +15,0 @@ |
{ | ||
"name": "oidc-react", | ||
"version": "3.0.4", | ||
"version": "3.1.0", | ||
"private": false, | ||
"description": "", | ||
"description": "OpenID Connect Authentication for React. Supports Hooks 🚀", | ||
"repository": "github:bjerkio/oidc-react", | ||
@@ -32,8 +32,8 @@ "license": "MIT", | ||
"@types/jest": "29.5.0", | ||
"@types/node": "18.15.5", | ||
"@types/node": "18.15.11", | ||
"@types/react": "18.0.28", | ||
"@typescript-eslint/eslint-plugin": "5.56.0", | ||
"@typescript-eslint/parser": "5.56.0", | ||
"@typescript-eslint/eslint-plugin": "5.57.1", | ||
"@typescript-eslint/parser": "5.57.1", | ||
"bundlewatch": "0.3.3", | ||
"eslint": "8.36.0", | ||
"eslint": "8.38.0", | ||
"eslint-config-airbnb-base": "15.0.0", | ||
@@ -49,10 +49,10 @@ "eslint-config-prettier": "8.8.0", | ||
"jest-fail-on-console": "3.1.1", | ||
"prettier": "2.8.6", | ||
"prettier": "2.8.7", | ||
"react": "18.2.0", | ||
"react-dom": "18.2.0", | ||
"ts-jest": "29.0.5", | ||
"ts-jest": "29.1.0", | ||
"ts-node-dev": "2.0.0", | ||
"typedoc": "0.23.28", | ||
"typedoc-plugin-markdown": "3.14.0", | ||
"typescript": "5.0.2" | ||
"typedoc": "0.24.4", | ||
"typedoc-plugin-markdown": "3.15.2", | ||
"typescript": "5.0.4" | ||
}, | ||
@@ -59,0 +59,0 @@ "peerDependencies": { |
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
50907
571
0