Skip to content

Commit

Permalink
fix(auth): fix remove prop reviewer
Browse files Browse the repository at this point in the history
  • Loading branch information
lailabjil committed Feb 1, 2024
1 parent 504db66 commit 4afc07f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/service/auth-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,12 @@ import { WebStorageStateStore } from "oidc-client-ts";
import { UserManager } from "oidc-react";
import { setUserToken } from "./user-service";

const authUrlSS0 = process.env.REACT_APP_KEYCLOAK_AUTHORITY_REVIEWER ?? "";
const authUrl = process.env.REACT_APP_KEYCLOAK_AUTHORITY ?? "";
const url = process.env.REACT_APP_KEYCLOAK_AUTHORITY ?? "";
const clientId = process.env.REACT_APP_KEYCLOAK_CLIENT_ID ?? "";
const redirectUri = process.env.REACT_APP_KEYCLOAK_REDIRECT_URI ?? "";
const protocol = "protocol/openid-connect/auth" ?? "";
const attributes = window.location.search;
const isSSO = attributes.includes("kc_idp_hint");
const url = isSSO ? authUrlSS0 : authUrl;
const attributeSSO = attributes.substring(1, attributes.length);

const createUserManager = () => {
Expand Down

0 comments on commit 4afc07f

Please sign in to comment.