issues
search
RPOpenSoft2023
/
BankingMicroService
0
stars
0
forks
source link
Create a custom authentication class for all API Views
#1
Closed
Vaibhav-22-dm
closed
1 year ago
Vaibhav-22-dm
commented
1 year ago
Expected Behavior:
Custom authentication should extract token from authorization headers and check its expiry time.
If token is expired then send error message that token has expired with proper status code.
If token is invalid then send error message that token is invalid with proper status code.
If token is valid and not expired then user should be returned by fetching it using phone number decoded from token.
This authentication class should be added to all protected api views.
Expected Behavior: