Sign-up & Log in
Last updated
Last updated
Authentication is the way the backend handles adding users and allowing them to access certain areas of your app.
Through Jumpstart, Xano automatically adds a user database table and provisions the endpoints needed for you to log in. A special feature is that we create 3 special API endpoints. These endpoints use Authentication tokens also known as a JWT (JSON Web Token) which can be stored using cookies or HTML 5 Web Storage (localStorage or sessionStorage). Choosing which method to use is completely up to you.
With these 3 endpoints, you will be able to set up the sign-up and login experiences for your app.
auth/signup This endpoint creates a user record to the database table using 3 inputs: name, email, and password. It returns an Authentication token which can be used with the auth/me API endpoint to get the information of the user.
auth/login This endpoint uses 2 inputs: email and password to retrieve an Authentication token which can be used with the auth/me API endpoint to get the information of the user.
auth/me This endpoint uses an Authentication token to retrieve the data of the user that it is associated with.