Skip to content

Commit

Permalink
Fix AuthMethods page
Browse files Browse the repository at this point in the history
  • Loading branch information
dyakovri committed Apr 7, 2024
1 parent c5c0ba1 commit 784ea28
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/views/profile/ProfileEditAuthView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import IrdomAuthButton from '@/components/IrdomAuthButton.vue';
import { useProfileStore } from '@/store/profile';
import { authButtons } from '@/constants/authButtons';
import { useToolbar } from '@/store/toolbar';
import { AuthApi } from '@/api';
import { MySessionInfo } from '@/api/auth';
const profileStore = useProfileStore();
const toolbar = useToolbar();
Expand All @@ -19,6 +21,9 @@ onMounted(async () => {
profileStore.updateToken(history.state.token);
delete history.state.token;
}
if (!profileStore.authMethods) {
AuthApi.getMe([MySessionInfo.AuthMethods]);
}
});
const canLinked = computed(() =>
Expand Down

0 comments on commit 784ea28

Please sign in to comment.