Is there a way to get ip address from
# support-questions
p
Is there a way to get ip address from userContext? Trying to get user ip address when overriding sign up function
n
Hi @PoktBlade Yep, userContext["_default"]["request"] is the original request object. You can consume it how you normally would in non supertokens APIs
p
It would be nice if there was a typed version of it, something like a receiver function of func (c *UserContext) GetDefaultRequest()
but yea i got it, thank you! was adding recaptcha to the sign up 🙂
r
Yea fair. We are working on it.
2 Views