File tree 1 file changed +8
-0
lines changed
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -79,6 +79,7 @@ class AuthService {
79
79
80
80
/**
81
81
*
82
+ * @param req - Request
82
83
* @param formData
83
84
*/
84
85
public static async signIn ( req : Request , formData : LoginAttributes ) {
@@ -163,6 +164,11 @@ class AuthService {
163
164
)
164
165
}
165
166
167
+ /**
168
+ *
169
+ * @param UserId
170
+ * @param token
171
+ */
166
172
public static async verifySession ( UserId : string , token : string ) {
167
173
const sessionUser = await SessionService . findByTokenUser ( UserId , token )
168
174
const verifyToken = verifyAccessToken ( sessionUser . token )
@@ -190,6 +196,8 @@ class AuthService {
190
196
/**
191
197
*
192
198
* @param UserId
199
+ * @param userData
200
+ * @param token
193
201
*/
194
202
public static async logout ( UserId : string , userData : any , token : string ) {
195
203
if ( userData ?. id !== UserId ) {
You can’t perform that action at this time.
0 commit comments