I'm working on a RESTful web application. I would like to have user registration occur via a POST request (username and password in the request body), and user login via a GET request (username and password in the query).
The PassportJS documentation seems to show that Passport expects credentials to be in the request body (which it parses). I don't quite understand how it would work with GET requests, since they don't have bodies (typically, if I understand correctly).
How would I make this work? Is this a bad idea? If it is, is there a RESTful alternative?