Skip to content

Commit

Permalink
Merge pull request #51 from charan379/dev
Browse files Browse the repository at this point in the history
merge changes from dev
  • Loading branch information
charan379 authored Feb 27, 2024
2 parents d86e061 + c95c03d commit 9c1ddc1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/controllers/api/links.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class LinksController {
* 401:
* description: Unauthorized
*/
this.router.post("/new", Authorize(LevelOne), this.newLink.bind(this));
this.router.post("/new", Authorize(LevelTwo), this.newLink.bind(this));

/**
* Endpoint for getting Link by its ID
Expand Down
2 changes: 1 addition & 1 deletion src/app/utils/jwt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export async function generateJwtToken(userDTO: Partial<UserDTO>): Promise<strin

try {
const signOptions: jwt.SignOptions = {
expiresIn: "30d",
expiresIn: "8h",
algorithm: 'HS256',
};

Expand Down

0 comments on commit 9c1ddc1

Please sign in to comment.