I am working on JWT Authentication service that needs to provide JWT token to Angular client app and I have following dilemma:
What service should return in case bad credentials are provided:
- {token: null}, or
- 401 Not Authorized Http message
Does that make any difference when security is in question?