How to use username + password authentication in a SPA to test my API?