- Sessions API Endpoint Specs
- GET Information about the current user and his roles
- POST Validated provided credentials and create a Fusion JWT token
- DELETE Removes id cookie from browser
The session API provides a way for clients to manage Fusion sessions and cookies. When a client successfully authenticates, Fusion will create a unique identifier for the session. This identifier becomes the session key and is mapped to the client. The authentication response contains an HTTP cookie, which is typically stored by the client for later use. By sending this cookie back to Fusion, a client can securely access Fusion without having to re-authenticate.