Skip to content

Commit f19b40d

Browse files
authored
Merge pull request #197 from amam-deriv/amam/update_brand_authorize
amam/update_brand_authorize
2 parents 9a1d85f + d37fdf9 commit f19b40d

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
},
2828
"dependencies": {
2929
"@deriv-com/analytics": "^1.22.1",
30-
"@deriv-com/auth-client": "^1.3.1",
30+
"@deriv-com/auth-client": "^1.3.10",
3131
"@deriv-com/quill-ui": "^1.16.21",
3232
"@deriv/deriv-api": "^1.0.11",
3333
"@deriv/ui": "^0.8.0",

src/hooks/useLogout/__tests__/useLogout.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ mockUseAuthContext.mockImplementation(() => ({
2525
}));
2626

2727
jest.mock('@deriv-com/auth-client', () => ({
28-
OAuth2Logout: jest.fn((WSLogoutAndRedirect) => {
28+
OAuth2Logout: jest.fn(({WSLogoutAndRedirect}) => {
2929
const mockIframe = document.createElement('iframe');
3030
mockIframe.id = 'logout-iframe';
3131
document.body.appendChild(mockIframe);

src/hooks/useLogout/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const useLogout = () => {
1919
}, [updateCurrentLoginAccount, updateLoginAccounts]);
2020

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

2525
return { logout: handleLogout };

0 commit comments

Comments
 (0)