Switch profile
POST/api/auth/switch-profile
Switches the session to another profile reachable with the same credentials (see profiles in the signin response), e.g. from a school to the teacher profile it operates and back, without asking the password again. Opens a new session exactly like signin: a new JWT in the body and a new refresh token in the HttpOnly cookie. The JWT of the previous profile stays valid until it expires; the client must replace it.
Request
Responses
- 200
- 400
- 401
- 403
Same body as signin
Missing category, or the category is already the caller's
Unauthorized
No active profile of that category is reachable with the caller's credentials