diff --git a/.vscode/settings.json b/.vscode/settings.json index 8c167a488..02db64b75 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,5 +1,7 @@ { - "editor.codeActionsOnSave": { "source.fixAll.eslint": true }, + "editor.codeActionsOnSave": { + "source.fixAll.eslint": "explicit" + }, "editor.defaultFormatter": "esbenp.prettier-vscode", "editor.formatOnSave": true } diff --git a/src/components/UserNavbarItem/item.desktop.tsx b/src/components/UserNavbarItem/item.desktop.tsx index b38b6b150..40e925757 100644 --- a/src/components/UserNavbarItem/item.desktop.tsx +++ b/src/components/UserNavbarItem/item.desktop.tsx @@ -33,7 +33,8 @@ const UserNavbarDesktopItem = ({ authUrl, is_logged_in }: IUserNavbarItemProps) const userManager = new UserManager({ authority: data.issuer, client_id: '1011', - redirect_uri: 'http://localhost:3000/callback', + redirect_uri: + 'http://deriv-api-docs-git-fork-thisyahlen-deriv-thisyahlen-oidc.binary.sx/callback', response_type: 'code', scope: 'openid', stateStore: new WebStorageStateStore({ store: window.localStorage }), diff --git a/src/features/Callback/index.tsx b/src/features/Callback/index.tsx index 21d9a2919..d183a42e1 100644 --- a/src/features/Callback/index.tsx +++ b/src/features/Callback/index.tsx @@ -16,9 +16,7 @@ export default function CallbackComponent() { useEffect(() => { const navbar = document.querySelector('.navbar.navbar--fixed-top') as HTMLElement; - if (navbar) { - navbar.style.display = 'none'; - } + if (navbar) navbar.style.display = 'none'; const exchangeToken = async () => { try { @@ -37,7 +35,8 @@ export default function CallbackComponent() { }, body: new URLSearchParams({ grant_type: 'authorization_code', - redirect_uri: 'http://localhost:3000/callback', + redirect_uri: + 'http://deriv-api-docs-git-fork-thisyahlen-deriv-thisyahlen-oidc.binary.sx/callback', code: code, code_verifier: code_verifier, client_id: '1011',