Socket
Socket
Sign inDemoInstall

oidc-react

Package Overview
Dependencies
6
Maintainers
7
Versions
39
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.0.4 to 3.1.0

3

build/src/AuthContext.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc