add code chunking to vite.config.ts

This commit is contained in:
Amruth Pillai
2024-05-07 11:45:33 +02:00
parent e21430a421
commit e3785030e1
11 changed files with 616 additions and 707 deletions

View File

@ -70,6 +70,12 @@ export class AuthService {
}
}
async setLastSignedIn(email: string) {
await this.userService.updateByEmail(email, {
secrets: { update: { lastSignedIn: new Date() } },
});
}
async setRefreshToken(email: string, token: string | null) {
await this.userService.updateByEmail(email, {
secrets: {
@ -129,6 +135,7 @@ export class AuthService {
}
await this.validatePassword(password, user.secrets.password);
await this.setLastSignedIn(user.email);
return user;
} catch {