Refresh the session
Exchanges the session pair for a new one; the old pair stops working. Re-issued into the same workspace while the user is still a member. A refusal is `400` with the field errors as the WHOLE body (no `errors` wrapper), as on `POST /api/v1/auth/refresh-token`. Cookie auth (WBL-3265): the pair is read ONLY from the cookies `b2t_access` + `b2t_refresh`, and `X-B2T-CSRF: 1` is required (otherwise 403). `access_token` / `refresh_token` in the body are NOT accepted: a complete pair there is refused exactly as a wrong pair in the cookies is (`400 {"refreshToken":["Incorrect refresh Token"]}`) and is never looked up or rotated. The new pair is set as cookies and is NOT in the body.
Request Body
application/json
Empty. The pair travels in the b2t_access + b2t_refresh cookies; a pair in the body is refused.
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
curl -X POST "https://example.com/api/v2/auth/refresh-token" \ -H "Content-Type: application/json" \ -d '{}'