Skip to content

Commit

Permalink
chore: change hostname
Browse files Browse the repository at this point in the history
  • Loading branch information
thisyahlen-deriv committed Oct 14, 2024
1 parent 8d10387 commit 95bf7d2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
4 changes: 3 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"editor.codeActionsOnSave": { "source.fixAll.eslint": true },
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
},
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
}
3 changes: 2 additions & 1 deletion src/components/UserNavbarItem/item.desktop.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 }),
Expand Down
7 changes: 3 additions & 4 deletions src/features/Callback/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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',
Expand Down

0 comments on commit 95bf7d2

Please sign in to comment.