https://supertokens.com/ logo
Hey rp 5569 I am sending userContext in
s

showtim3

05/03/2023, 6:35 PM
Hey @rp I am sending userContext in the createPasswordlessCode from the frontend, its all working fine, I am having some trouble accessing this userContext in the backend,
The screenshot is from my react code
r

rp

05/03/2023, 6:35 PM
hey @showtim3 the userContext is not transferred automatically to the backend
you can use the pre API hook feature we have to add stuff to the request body based on the user context
and then read the request body on the backend
s

showtim3

05/03/2023, 6:36 PM
ohhhhh that way, okay great, thanks for being super fast and helpful as always