Hey, I've implemented a backend handler to take the access token from the frontend and a target userid, and if the roles/permissions are all good, permits them to exchange their token for the target token.
This all works and the endpoint is returning the JWT as expected with the correct sub and audiences.
How can I then use this in this library to "swap" the session to the impersonated token?
Thanks.
Hey, I've implemented a backend handler to take the access token from the frontend and a target userid, and if the roles/permissions are all good, permits them to exchange their token for the target token.
This all works and the endpoint is returning the JWT as expected with the correct sub and audiences.
How can I then use this in this library to "swap" the session to the impersonated token?
Thanks.