File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ const { JWT_SECRET_ACCESS_TOKEN, JWT_SECRET_REFRESH_TOKEN }: any = process.env
1212
1313/**
1414 *
15- * @param headers
15+ * @param headers - Get Token from headers
1616 */
1717function getToken ( headers : any ) {
1818 if ( headers && headers . authorization ) {
@@ -30,6 +30,10 @@ function getToken(headers: any) {
3030 return null
3131}
3232
33+ /**
34+ *
35+ * @param req - Request
36+ */
3337function currentToken ( req : Request ) {
3438 const getCookie = req . getCookies ( )
3539 const getHeaders = req . getHeaders ( )
@@ -46,7 +50,7 @@ function currentToken(req: Request) {
4650
4751/**
4852 *
49- * @param token
53+ * @param token - Verify Token
5054 */
5155function verifyToken ( token : string ) {
5256 try {
@@ -73,7 +77,7 @@ function verifyToken(token: string) {
7377
7478/**
7579 *
76- * @param token
80+ * @param token - Verify Token
7781 */
7882function verifyRefreshToken ( token : string ) {
7983 try {
You can’t perform that action at this time.
0 commit comments