oidc-react
Advanced tools
Comparing version 1.0.0-alpha.4 to 1.0.0-alpha.5
@@ -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": "", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13466