How to Create a Basic Login System
How to set up a basic login system in your Ask application.
Last updated
How to set up a basic login system in your Ask application.
Last updated
This guide will walk you through setting up and testing an email & password-based JWT login system.
.
.
Decorators.
Use .e.g postman to first sign up, and then login. Then make a request to /auth_status
and send the token you received from /login
as a query parameter called token
. If you're using Postman do the following:
Open the Authorization
tab.
Select API key in the Type
dropdown list.
Set Key
to token
.
Paste in your token into the Value
field.
Select Query Params
in the Add To
dropdown list.
You should receive the message "You are logged in!".