I want to implement a feature where a user beeing administrator (via role model) is able to obtain an id token form any other user in the database. Goal is to pretend beeing a diffrent user to check its perspective onto the data or to find errors dealing with customers.
Its essential to obtain the same idToken the user would get on authorization. Cause this defines what she or he will see.
My idea is to implement a route only admins can call to obtain idTokens to any userId. The backend has an access token for the management api.
Any help or ideas how to achieve my goal are appreciated.