Check login with WhoAmI
-You can check your current login status by using the /WhoAmI
API call. This is a GET request, and you need to provide the olivetin-sid-local
cookie in the request. Here is an example of how you can check your login status via a cURL request;
user@host: curl -X GET http://localhost:1337/api/WhoAmI -H "accept: application/json" -H 'Content-Type: application/json' -b "olivetin-sid-local=cd33aa9c-c613-473e-8581-2b742716ab8e"
-{"authenticatedUser":"admin", "usergroup":"", "provider":"local", "acls":[], "sid":""}
-