Hey. I would like to know if there is a way for me...
# support-questions-legacy
a
Hey. I would like to know if there is a way for me to be able to send some information based on the url login is called from (using custom U.I.), to my backend so I can assign some role to a user based on that information.
n
Hi
a
I was looking into a method to pass a specific header in the signinup request
n
Just so I understand correctly, the same API endpoint is called from two different domains?
a
Yes
n
Which recipe are you using?
a
thirdpartypasswordless
n
Right so you use our override feature to get access to custom headers and body properties for the API (https://supertokens.com/docs/thirdpartypasswordless/advanced-customizations/apis-override/usage) And then use our user context feature to set custom information when calling the original implementation (https://supertokens.com/docs/thirdpartypasswordless/advanced-customizations/user-context)
Then you can override the signinup function to consume the custom information and set custom roles for users (https://supertokens.com/docs/thirdpartypasswordless/advanced-customizations/backend-functions-override/about)
@AngelicDevil quick correction here, when overriding the backend SDK functions the user context should let you access the original request. So you can just read your custom data that way
a
ok, thanks