Skip to content

Commit

Permalink
removing hook function
Browse files Browse the repository at this point in the history
Signed-off-by: austin5219 <[email protected]>
  • Loading branch information
austin5219 committed Oct 16, 2024
1 parent 46b66c0 commit 4fcb087
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ui/src/app/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,10 @@ requests.onError.subscribe(async err => {
const basehref = document.querySelector('head > base').getAttribute('href').replace(/\/$/, '');
if (isSSO) {
const authSettings = await services.authService.settings();
const ctx = React.useContext(Context);

if (authSettings?.oidcConfig?.enablePKCEAuthentication) {
pkceLogin(authSettings.oidcConfig, getPKCERedirectURI().toString()).catch(err => {
ctx.notifications.show({
Context.notifications.show({
type: NotificationType.Error,
content: err?.message || JSON.stringify(err)
});
Expand Down

0 comments on commit 4fcb087

Please sign in to comment.