liamcurry / passport-steam

Steam (OpenID) authentication strategy for Passport and Node.js.
MIT License
349 stars 104 forks source link

Passport and React Native #106

Open lorenzo-moni opened 3 years ago

lorenzo-moni commented 3 years ago

Hi, I'm trying to create a react native app with node express backend and the option of steam authentication

When the user in the app click on the login button a browser with the authentication page pop out and let the user log in normally. Then the user is redirected back on the app using deep-links but when I try to perform a GET request to get back the req.user it doesn't return anything. This code is perfectly running on desktop browser but I can't manage to let it work on react native.

I strongly believe that this is led by the fact that React Native is not a browser environment and so I need to manage session cookies on my own.

Can somebody explain me how to do this thing and maybe link some guides or some useful GitHub repos.

Thank in Advance