Manual login
This is a manual login for projects, when login doesn’t work locally.
Get a token
Ref: https://TENANT.ENVIRONMENT.phpreaction.com/open-api/login_check
There are 3 ways to get a token:
-
Use an API client like Postman or Bruno
-
Use cURL
curl -X 'POST' \ 'https://TENANT.ENVIRONMENT.phpreaction.com/open-api/login_check' \ -H 'accept: application/json' \ -H 'Content-Type: application/json' \ -d '{ "username": "USERNAME", "password": "PASSWORD" -
Use Swagger : https://TENANT.ENVIRONMENT.phpreaction.com/open-api/v3#/Fetch%20JWT%20Token%20(Authentication)/open_api_login_check
Copy the token
In App:
-
Remove Auth function call in middleware.ts
-
Go to / (home) or any page on a browser
-
Open the console
-
Paste the token in App -> Cookies -> APPUrl as “currentUser”
-
Go back to middleware.ts and add the Auth function call back
Last updated on