Passa al contenuto principale

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​

Same body as signin