- Source:
Methods
(static) accessAllUser(token)
Decode user's token and get user information to filter route only can be accessed by user.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
token |
String | User's token JWT. |
(static) accessOnlyAdmin(token)
Decode user's token and get user information to filter route only can be accessed by admin.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
token |
String | User's token JWT. |
(static) logLogin(email, ipAddress, userAgent, loginTime)
Log user login activity.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
email |
String | User's email. |
ipAddress |
String | User's IP Address. |
userAgent |
String | User's user agent. |
loginTime |
String | User's login time. |