diff --git a/resources/js/store/index.ts b/resources/js/store/index.ts index 8f9ad0b..fb3c93f 100644 --- a/resources/js/store/index.ts +++ b/resources/js/store/index.ts @@ -202,6 +202,7 @@ export const useAppStore = defineStore('app', { async createApiToken(name: string) { const res = await AuthApi.createApiToken(name); this.user.apiTokens.push(res.data.CreateApiToken); + this.tokensCount = this.user.apiTokens.length; }, async revokeToken(name: string) { await AuthApi.revokeApiTokens([name]);