DummyAPI supports mocking authentication.
Note: it is possible to send unauthorized request without credentials, what doesn't not cause 401 or 403 status codes.
User is created by full filling form on the authentication panel and pressing Create
Fields "Name" and "Password" are mandatory and used while login request. Password can be empty.
If you need to return extra information in response to login request, you need to assign resource instance to user.
To do this:
After this linked resource's fields will be returned in response to login request mixed with user parameters like "access token".
Note: If resource is not found for any reason, login will be successful anyway, but without resource.
There was an error while loading. Please reload this page.