I implemented JWT token for API Authorization. Every request that required authorization is sent with JWT token in Authorization header like this: Authorization: Bearer <token>.
Everything is clear for me about JWT token except login request.
I just want to use Authorization: Basic <credentials> where login request. I suppose sending username and password as plain text seems not good. But I'm not sure.
Is it okay to use Basic <credentials> on login request and then use Bearer <token> on other request?