WaspW
Wasp2y ago
JakeLoew

Documentation for `login` action

Is the documentation for the login action perhaps incorrect? The API reference at /auth/username-and-pass#1-using-the-signup-and-login-actions shows that the function takes username: string and password: string, but the member exported from wasp/client/auth shows that it takes data: { email: string; password: string }

Wasp version: 0.13.2
image.png
Wasp supports username & password authentication out of the box with login and signup flows. It provides you with the server-side implementation and the UI components for the client side.
Was this page helpful?