Skip to content

Commit

Permalink
Update env var to KINDE_AUTH_API_PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
kengreeff committed Sep 4, 2023
1 parent c8d546d commit fb89818
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const initialState = {
const SESSION_PREFIX = 'pkce-verifier';

const KINDE_SITE_URL = process.env.KINDE_SITE_URL;
const KINDE_API_PATH = process.env.KINDE_API_PATH || '/api/auth';
const KINDE_AUTH_API_PATH = process.env.KINDE_AUTH_API_PATH || '/api/auth';
const KINDE_POST_LOGIN_REDIRECT_URL =
process.env.KINDE_POST_LOGIN_REDIRECT_URL ||
process.env.KINDE_POST_LOGIN_URL_REDIRECT_URL;
Expand All @@ -20,7 +20,7 @@ const KINDE_CLIENT_SECRET = process.env.KINDE_CLIENT_SECRET;
const KINDE_AUDIENCE = process.env.KINDE_AUDIENCE;

export const config = {
apiPath: KINDE_API_PATH,
apiPath: KINDE_AUTH_API_PATH,
initialState,
SESSION_PREFIX,
redirectURL: KINDE_SITE_URL,
Expand All @@ -34,7 +34,7 @@ export const config = {
scope: 'openid profile email offline',
codeChallengeMethod: 'S256',
redirectRoutes: {
callback: `${KINDE_API_PATH}/kinde_callback`
callback: `${KINDE_AUTH_API_PATH}/kinde_callback`
},
issuerRoutes: {
logout: '/logout',
Expand Down

0 comments on commit fb89818

Please sign in to comment.