Skip to content

Commit

Permalink
24.04.14: fixed logout [WTEL-4374]
Browse files Browse the repository at this point in the history
  • Loading branch information
dlohvinov committed Mar 22, 2024
1 parent 19bb35e commit 8364165
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@webitel/ui-sdk",
"version": "24.4.13",
"version": "24.4.14",
"private": false,
"scripts": {
"dev": "vite",
Expand Down
2 changes: 1 addition & 1 deletion src/modules/Userinfo/store/UserinfoStoreModule.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export default class UserinfoStoreModule extends BaseStoreModule {
}
},

LOGOUT: async (context, { authUrl = import.meta.env.VITE_AUTH_URL }) => {
LOGOUT: async (context, { authUrl = import.meta.env.VITE_AUTH_URL } = {}) => {
if (!authUrl) throw new Error('No authUrl for LOGOUT provided');
await userinfo.logout();
window.location.href = authUrl;
Expand Down

0 comments on commit 8364165

Please sign in to comment.