Skip to content

Commit

Permalink
feat(authenticator): initialize task management template on sign-in
Browse files Browse the repository at this point in the history
Signed-off-by: Wanjin Noh <[email protected]>
  • Loading branch information
WANZARGEN committed Dec 20, 2024
1 parent b04537f commit 2dfa3ee
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apps/web/src/services/auth/authenticator/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import { useErrorStore } from '@/store/error/error-store';
import { pinia } from '@/store/pinia';
import { useUserStore } from '@/store/user/user-store';

import { initTaskManagementTemplate } from '@/lib/site-initializer/initTaskManagementTemplate';


abstract class Authenticator {
static async signIn(credentials: Record<string, any>, authType: AuthType | 'SAML', verifyCode?: string): Promise<void> {
Expand All @@ -27,6 +29,7 @@ abstract class Authenticator {
await userWorkspaceStore.load();
displayStore.setIsSignInFailed(false);
errorStore.reset();
await initTaskManagementTemplate();
}

static async signOut(): Promise<void> {
Expand Down

0 comments on commit 2dfa3ee

Please sign in to comment.