Socket
Socket
Sign inDemoInstall

oidc-react

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

oidc-react - npm Package Compare versions

Comparing version 2.0.3 to 2.1.0

9

build/src/AuthContext.js

@@ -91,3 +91,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;
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;
return new oidc_client_ts_1.UserManager({

@@ -107,2 +107,3 @@ authority: authority || '',

automaticSilentRenew: automaticSilentRenew,
extraQueryParams: extraQueryParams
});

@@ -147,3 +148,3 @@ };

var getUser = function () { return __awaiter(void 0, void 0, void 0, function () {
var isMounted, user_1, user;
var isMounted, user_1, user, state;
return __generator(this, function (_a) {

@@ -165,4 +166,4 @@ switch (_a.label) {

if ((!user || user.expired) && autoSignIn) {
onBeforeSignIn && onBeforeSignIn();
userManager.signinRedirect();
state = onBeforeSignIn ? onBeforeSignIn() : undefined;
userManager.signinRedirect({ state: state });
}

@@ -169,0 +170,0 @@ else if (isMounted) {

@@ -12,2 +12,3 @@ import { UserManager, User, PopupWindowFeatures } from 'oidc-client-ts';

authority?: string;
extraQueryParams?: Record<string, string>;
clientId?: string;

@@ -27,3 +28,3 @@ clientSecret?: string;

popupWindowTarget?: string;
onBeforeSignIn?: () => void;
onBeforeSignIn?: () => string;
onSignIn?: (userData: User | null) => Promise<void> | void;

@@ -30,0 +31,0 @@ onSignOut?: (options?: AuthProviderSignOutProps) => Promise<void> | void;

@@ -6,2 +6,9 @@ # Changelog

## [2.1.0](https://github.com/bjerkio/oidc-react/compare/v2.0.3...v2.1.0) (2022-10-23)
### Features
* add extraQueryParams to AuthProvider ([#890](https://github.com/bjerkio/oidc-react/issues/890)) ([89dc4ea](https://github.com/bjerkio/oidc-react/commit/89dc4ea0a1aaecabe73c164a7f519b03e94c28d4))
## [2.0.3](https://github.com/bjerkio/oidc-react/compare/v2.0.2...v2.0.3) (2022-08-04)

@@ -8,0 +15,0 @@

{
"name": "oidc-react",
"version": "2.0.3",
"version": "2.1.0",
"private": false,

@@ -68,3 +68,3 @@ "description": "",

"ts-node-dev": "^1.0.0-pre.40",
"typedoc": "^0.20.5",
"typedoc": "^0.23.17",
"typedoc-plugin-markdown": "^3.0.3",

@@ -71,0 +71,0 @@ "typescript": "^4.6.3"

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc