Skip to content

Commit 97aeab5

Browse files
committed
fix: params type function auth
1 parent dc5d96e commit 97aeab5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/controllers/Auth/service.ts

+8
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ class AuthService {
7979

8080
/**
8181
*
82+
* @param req - Request
8283
* @param formData
8384
*/
8485
public static async signIn(req: Request, formData: LoginAttributes) {
@@ -163,6 +164,11 @@ class AuthService {
163164
)
164165
}
165166

167+
/**
168+
*
169+
* @param UserId
170+
* @param token
171+
*/
166172
public static async verifySession(UserId: string, token: string) {
167173
const sessionUser = await SessionService.findByTokenUser(UserId, token)
168174
const verifyToken = verifyAccessToken(sessionUser.token)
@@ -190,6 +196,8 @@ class AuthService {
190196
/**
191197
*
192198
* @param UserId
199+
* @param userData
200+
* @param token
193201
*/
194202
public static async logout(UserId: string, userData: any, token: string) {
195203
if (userData?.id !== UserId) {

0 commit comments

Comments
 (0)