Skip to content

Commit

Permalink
Update app/lucy/src/app/services/sso.service.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Matthew Logan <[email protected]>
  • Loading branch information
davidclaveau and LocalNewsTV authored Jan 12, 2024
1 parent 261d5cd commit 3c39850
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/lucy/src/app/services/sso.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ export class SsoService {
const oidc_nonce = sessionStorage.getItem('oidc_nonce');
const tokenNonce = jwtDecode(result.refresh_token)['nonce'];

if (result['success'] === false || oidc_nonce !== tokenNonce) {
if (!result['success'] || oidc_nonce !== tokenNonce) {
return undefined;
} else {
const accessToken = result['access_token'];
Expand Down

0 comments on commit 3c39850

Please sign in to comment.