https://supertokens.com/ logo
Is there a way to get ip address from
p

PoktBlade

05/22/2023, 3:54 AM
Is there a way to get ip address from userContext? Trying to get user ip address when overriding sign up function
n

nkshah2

05/22/2023, 6:17 AM
Hi @PoktBlade Yep, userContext["_default"]["request"] is the original request object. You can consume it how you normally would in non supertokens APIs
p

PoktBlade

05/22/2023, 6:22 AM
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

rp

05/22/2023, 6:27 AM
Yea fair. We are working on it.