User authentication
After creating your users, you will need to authenticate them with the server.
You can do this with a combination of the username and password authentication method, and the get user APIs.
To set up authentication with the default database, we will pass a verifyPassword
function to the server, and use the database APIs to verify our user.
Example