mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-18 02:31:56 +10:00
add code chunking to vite.config.ts
This commit is contained in:
@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user