Skip to content

Commit 5d0892e

Browse files
committed
style: comment params token
1 parent 8bfb079 commit 5d0892e

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/helpers/Token.ts

+7-3
Original file line numberDiff line numberDiff 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
*/
1717
function 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+
*/
3337
function 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
*/
5155
function 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
*/
7882
function verifyRefreshToken(token: string) {
7983
try {

0 commit comments

Comments
 (0)