Impersonation bug? #1202
Unanswered
BarbecueSilver
asked this question in
Q&A
Replies: 1 comment 5 replies
-
Can you check if the client is using the newly created accessToken that is sent in the response of the impersonation call or if it's the initial access token? |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I don't know if I lost already my mind 🦀, so I got to ask here.
Currently I am trying to impersonate as a different user:
As a client I use the
impersonate(...)
function. Returns a success 🎉But now I still receive the data of the "old" user. :(
I digged into it and found out on the server side (with
graphql-api
):accounts.context(req)
returns the impersonator user.But shouldn't it return the impersonated user? Is this is a bug? As far as I got it from the code
resumeSession
does not handle anyimpersonation
cases.here a rough sketch of the code on the server side:
Beta Was this translation helpful? Give feedback.
All reactions