+
icon next to widgets from the side navigation and drag and drop a form widget onto the canvas.userName
password
+
icon next to the APIs in the side navigation.login_api.
To test this out, we’ve created a test Auth API; use the following if you don’t have any Auth APIs.
https://appsmith-tutorial-apis.herokuapp.com/auth/local
, set the request type to POST
.onClick
property to Call an API
and choose call_an_api
onSuccess
property to `Store a value` and name the key as jwt and value as {{login_api.data.jwt}}
jwt
variable in the header with an Authorization mode to access the secure APIs. As an example, let’s create a secure page and test it out.+
icon next to the APIs section.Authorization: Bearer {{appsmith.store.jwt}}
jwt
token that’s saved from the login-api.