Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
garronej committed Oct 25, 2023
1 parent bc72af4 commit 34f2a08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ import { createOidc, decodeJwt } from "oidc-spa";
//publicUrl: `${window.location.origin}/my-app`
});

if (oidc.isUserLoggedIn) {
if (!oidc.isUserLoggedIn) {
oidc.login({
// This return a promise that never resolve. Your user will be redirected to the identity server.
// doesCurrentHrefRequiresAuth determines the behavior when a user gives up on loggin in and navigate back.
Expand Down

0 comments on commit 34f2a08

Please sign in to comment.