Skip to content

Commit

Permalink
Merge pull request #197 from amam-deriv/amam/update_brand_authorize
Browse files Browse the repository at this point in the history
amam/update_brand_authorize
  • Loading branch information
shafin-deriv authored Jan 31, 2025
2 parents 9a1d85f + d37fdf9 commit f19b40d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
},
"dependencies": {
"@deriv-com/analytics": "^1.22.1",
"@deriv-com/auth-client": "^1.3.1",
"@deriv-com/auth-client": "^1.3.10",
"@deriv-com/quill-ui": "^1.16.21",
"@deriv/deriv-api": "^1.0.11",
"@deriv/ui": "^0.8.0",
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useLogout/__tests__/useLogout.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ mockUseAuthContext.mockImplementation(() => ({
}));

jest.mock('@deriv-com/auth-client', () => ({
OAuth2Logout: jest.fn((WSLogoutAndRedirect) => {
OAuth2Logout: jest.fn(({WSLogoutAndRedirect}) => {
const mockIframe = document.createElement('iframe');
mockIframe.id = 'logout-iframe';
document.body.appendChild(mockIframe);
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useLogout/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const useLogout = () => {
}, [updateCurrentLoginAccount, updateLoginAccounts]);

const handleLogout = () => {
OAuth2Logout(logout);
OAuth2Logout({ WSLogoutAndRedirect: logout, postLogoutRedirectUri: window.location.origin, redirectCallbackUri: `${window.location.origin}/callback` });
};

return { logout: handleLogout };
Expand Down

0 comments on commit f19b40d

Please sign in to comment.