.. AUTO-GENERATED FILE. DO NOT EDIT. Terminate JEF Store authentication session ========================================== Summary ------- - **Source repository:** ``jef-systems/jef-store-backend`` - **Source SHA:** ``07d2489d50cb131c466864ee7efe8e81fa498460`` - **Source run id:** ``30743812576`` - **Module:** ``Store`` - **Lambda function:** ``jef-store-terminate-authentication-session`` - **HTTP method:** ``POST`` - **Invocation mode:** ``sync`` - **Package mode:** ``no-package`` - **API category:** ``Store Complex Sync No Package POST APIs`` - **API path:** ``/store/complex-sync-no-packages/auth/logout`` - **Endpoint URL:** ``https://api.jefoffice.com/store/complex-sync-no-packages/auth/logout`` - **Documentation scope:** ``lambda-complex-sync-no-packages`` Synchronous Lambda Complex Rule ------------------------------- This API is documented as a synchronous Lambda complex no-package API. API Gateway waits for the Lambda result and returns the final Lambda response. Description ----------- Validates same-origin logout, revokes the canonical JEF session, clears cookies, and redirects through Cognito logout. Payload Example --------------- .. code-block:: json { "csrf_token": "sample-csrf-token" } Payload Schema -------------- .. code-block:: json { "root": { "type": "M", "required": true, "additional_properties": false, "attributes": { "csrf_token": { "type": "S", "required": false, "description": "HMAC-derived logout CSRF token.", "write_only": true, "max_length": 256, "example": "sample-csrf-token" } } } } Response Schema --------------- .. code-block:: json { "root": { "type": "M", "required": true, "additional_properties": false, "attributes": { "error": { "type": "S", "required": false, "description": "Browser-safe logout error code." } } } } Request Payload --------------- .. code-block:: json { "csrf_token": "sample-csrf-token" } CMD curl -------- .. code-block:: bat curl.exe -X POST "https://api.jefoffice.com/store/complex-sync-no-packages/auth/logout" -H "Content-Type: application/json" --data-raw '{}' PowerShell curl --------------- .. code-block:: powershell curl.exe -X POST "https://api.jefoffice.com/store/complex-sync-no-packages/auth/logout" -H "Content-Type: application/json" --data-raw '{}'