# Re-login and refresh existing session Used by Wifi Motion app to refresh session and issue new auth + refresh tokens. Endpoint: PATCH /sessions ## Query parameters: - `multi` (boolean) Prevents the update of the valid_from field on session refresh, allowing multiple sessions with the same account. ## Request fields (application/json): - `token` (string, required) ## Response 200 fields (application/json): - `refresh_token` (string) New refresh token Example: "NEW.AUTH.TOKEN" - `token` (string) New auth token Example: "NEW.REFRESH.TOKEN" - `user` (object) User data Example: {"id":420,"email":"user@cognitivesystems.com","first_name":"John","last_name":"Smith","created_at":"2020-01-04T22:05:38.793Z","updated_at":"2020-01-04T22:06:02.059Z","confirmed_at":"2020-01-04T22:06:02.056Z"} - `user.id` (integer, required) Example: 420 - `user.username` (string, required) - `user.email` (string, required) Example: "user@cognitivesystems.com" - `user.first_name` (string, required) Example: "John" - `user.last_name` (string, required) Example: "Smith" - `user.created_at` (string, required) Example: "2020-01-04T22:05:38.793Z" - `user.updated_at` (string, required) Example: "2020-01-04T22:06:02.059Z" - `user.sub` (string,null) - `user.confirmed_at` (string,null, required) Example: "2020-01-04T22:06:02.056Z" - `user.valid_from` (number)