File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed
apps/backend/src/auth/token Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change 11import { Injectable } from '@nestjs/common' ;
22import { JwtService } from '@nestjs/jwt' ;
33import { Response } from 'express' ;
4- import { InvalidTokenException } from '../../exception/invalid.exception' ;
54
65const HOUR = 60 * 60 ;
76const DAY = 24 * 60 * 60 ;
@@ -34,13 +33,9 @@ export class TokenService {
3433 }
3534
3635 verifyInviteToken ( token : string ) : { workspaceId : string ; role : string } {
37- try {
38- return this . jwtService . verify ( token , {
39- secret : process . env . JWT_SECRET ,
40- } ) ;
41- } catch ( error ) {
42- throw new InvalidTokenException ( ) ;
43- }
36+ return this . jwtService . verify ( token , {
37+ secret : process . env . JWT_SECRET ,
38+ } ) ;
4439 }
4540
4641 // 후에 DB 로직 (지금은 refreshToken이 DB로 관리 X)
You can’t perform that action at this time.
0 commit comments