Skip to content

Commit

Permalink
fix silent-check-sso.html path
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisgsmith committed Aug 14, 2024
1 parent 0f737c2 commit 17be306
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/userService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@ const _kc = new Keycloak({
clientId: import.meta.env.VITE_KC_CLIENT_ID,
});

const basePath = import.meta.env.VITE_URL_BASE_PATH ?? ''

export const initKeycloak = (renderAppCallback = () => {}) => {
_kc
.init({
onLoad: 'check-sso',
silentCheckSsoRedirectUri:
window.location.origin + '/silent-check-sso.html',
`${window.location.origin}${basePath}/silent-check-sso.html`,
pkceMethod: 'S256',
adapter: 'default',
})
Expand Down

0 comments on commit 17be306

Please sign in to comment.