# Login using Apple account and Begin Session This API endpoint allows users to create a session by authenticating via Apple’s Single Sign-On (SSO). The endpoint validates an Apple JWT token and then follows the /sessions flow to establish a user session Endpoint: POST /sessions/sso/apple ## Request fields (application/json): - `user` (object) - `user.name` (object) - `user.name.firstName` (string) Example: "John" - `user.name.lastName` (string) Example: "Smith" - `user.email` (string) Example: "user@cognitivesystems.com" - `access_token` (string, required) JWT token issued by Apple SSO Example: "NEW.APPLE.AUTH.TOKEN" ## Response 200 fields (application/json): - `refresh_token` (string) - `token` (string) - `user` (object) - `user.id` (integer) - `user.username` (string) - `user.email` (string) - `user.first_name` (string) - `user.last_name` (string) - `user.created_at` (string) - `user.updated_at` (string) - `user.confirmed_at` (string,null) - `user.sub` (string,null) - `user.valid_from` (number)