Skip to content

Commit

Permalink
change package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
RenauxLeaInsee committed Jun 5, 2024
1 parent c260a52 commit 9c99ef7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"font-awesome": "^4.7.0",
"history": "^5.0.0",
"mocha-junit-reporter": "^1.23.3",
"oidc-spa": "^4.6.1",
"oidc-spa": "4.5.1",
"prop-types": "^15.7.2",
"react": "^16.13.1",
"react-bootstrap": "^1.0.1",
Expand Down
2 changes: 1 addition & 1 deletion src/Authentication/useAuth.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { createReactOidc } from "oidc-spa/react";
*/
const mockOidc = { login: () => {}, isUserLoggedIn: false, oidcTokens: {} }
// Global method that will be replaced when oidc is initialized
let useOidc = () => mockOidc;
let useOidc = ({assertUserLoggedIn}) => mockOidc;

/**
* Helper method used for tests, set a fake Oidc authentication state
Expand Down

0 comments on commit 9c99ef7

Please sign in to comment.