Skip to content

Commit

Permalink
increase expiration time to 1d
Browse files Browse the repository at this point in the history
  • Loading branch information
RicardoE105 committed Jul 21, 2023
1 parent a42d260 commit 6e2de8a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/cli/src/user/user.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,10 @@ export class UserService {
static async generatePasswordResetUrl(user: User): Promise<string> {
const { id } = user;
const token = jwt.sign({ sub: id }, config.getEnv('userManagement.jwtSecret'), {
expiresIn: '1h',
expiresIn: '1d',
});
const baseUrl = getInstanceBaseUrl();
const url = new URL(`${baseUrl}/change-password`);
url.searchParams.append('userId', id);
url.searchParams.append('token', token);
return url.toString();
}
Expand Down

0 comments on commit 6e2de8a

Please sign in to comment.