Is there a way to get ip address from userContext? Trying to get user ip address when overriding sig...
e
Is there a way to get ip address from userContext? Trying to get user ip address when overriding sign up function
n
Hi @Erick Yep, userContext["_default"]["request"] is the original request object. You can consume it how you normally would in non supertokens APIs
e
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.
14 Views