File tree 1 file changed +7
-3
lines changed
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
12
12
13
13
/**
14
14
*
15
- * @param headers
15
+ * @param headers - Get Token from headers
16
16
*/
17
17
function getToken ( headers : any ) {
18
18
if ( headers && headers . authorization ) {
@@ -30,6 +30,10 @@ function getToken(headers: any) {
30
30
return null
31
31
}
32
32
33
+ /**
34
+ *
35
+ * @param req - Request
36
+ */
33
37
function currentToken ( req : Request ) {
34
38
const getCookie = req . getCookies ( )
35
39
const getHeaders = req . getHeaders ( )
@@ -46,7 +50,7 @@ function currentToken(req: Request) {
46
50
47
51
/**
48
52
*
49
- * @param token
53
+ * @param token - Verify Token
50
54
*/
51
55
function verifyToken ( token : string ) {
52
56
try {
@@ -73,7 +77,7 @@ function verifyToken(token: string) {
73
77
74
78
/**
75
79
*
76
- * @param token
80
+ * @param token - Verify Token
77
81
*/
78
82
function verifyRefreshToken ( token : string ) {
79
83
try {
You can’t perform that action at this time.
0 commit comments