h
r
hey @himanshukukreja_ we use cookies for sessions. Please see our docs and demo.
h
@rp_st I mistakenly put the authorization headers instead, I want to fetch the user agent client hint request header ( Sec-CH-UA ) which were generated while signing up/signing in. For ref:- https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-CH-UA
r
huh?
h
Hey @rp_st . Let me rephrase. I wanted to fetch the headers that are sent as part of the request so that I can get user-agent information like(browser ie Chrome, mozilla, Edge, etc, OS ie.e Chrome OS, Windows, Unix etc.). I wanted to store that in my DB.
r
oh right. That can be done by reading the request object from the input when you override the APIs
h
Are you taking about this request object. I have tried all the methods associated with this object but didn't got any required information
these are the methods that are associated with the object
r
it's
api_options.request
i think
h
Thankyou will able to get from api_options.request.request.headers
r
yup
h
Hey @rp_st how can we get the user's IP address when someone Sign In or Sign Up
r
you have access to all headers of the request - you can google which header to read