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 1.0.0-alpha.4 to 1.0.0-alpha.5

2

build/src/AuthContext.js

@@ -65,3 +65,3 @@ "use strict";

const user = yield userManager.getUser();
if ((!user || user === null) && autoSignIn) {
if ((!user || user === null || user.expired) && autoSignIn) {
if (onBeforeSignIn) {

@@ -68,0 +68,0 @@ onBeforeSignIn();

import { AuthContextProps } from './AuthContext';
import React from 'react';
export default function withAuth<P extends AuthContextProps>(Component: React.ComponentType<P>): React.FC<Pick<P, Exclude<keyof P, "userData" | "signIn" | "signOut">>>;
export declare function withAuth<P extends AuthContextProps>(Component: React.ComponentType<P>): React.ComponentType<Omit<P, keyof AuthContextProps>>;

@@ -17,2 +17,2 @@ "use strict";

}
exports.default = withAuth;
exports.withAuth = withAuth;

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

# [1.0.0-alpha.5](https://github.com/bjerkio/oidc-react/compare/v1.0.0-alpha.4...v1.0.0-alpha.5) (2020-04-21)
### Bug Fixes
* Autosignin on expired user ([d5dce04](https://github.com/bjerkio/oidc-react/commit/d5dce04f51bdfcff49ab622f60875aedfe17fdb5))
* Fix withAuth export ([4e0e2e1](https://github.com/bjerkio/oidc-react/commit/4e0e2e11675eda83fc543779d53f51f2ff96284e))
# [1.0.0-alpha.4](https://github.com/bjerkio/oidc-react/compare/v1.0.0-alpha.3...v1.0.0-alpha.4) (2020-04-16)

@@ -8,0 +16,0 @@

{
"name": "oidc-react",
"version": "1.0.0-alpha.4",
"version": "1.0.0-alpha.5",
"private": false,

@@ -5,0 +5,0 @@ "description": "",

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