K
Kinde4mo ago
lenymo

React Native @kinde/expo in the browser

Greetings, I'm a front-end dev from Melbourne, Australia and I'm currently working on a new React Native build which I'm hoping to use Kinde for authentication. I've done some searching through the discord for past support requests and have started using the @kinde/expo package. I've been able to integrate things for an iOS build according to the docs and hook up the provider and the useKindeAuth() hook, but I'm getting an error when I try to view the RN build on the web.
Static Rendering Error (Node.js)
window is not defined
Static Rendering Error (Node.js)
window is not defined
There is a pointer to:
node_modules/@kinde/expo/dist/kinde-expo.cjs (1:3067)
node_modules/@kinde/expo/dist/kinde-expo.cjs (1:3067)
Some info which may be helpful: - 0.1.1 of @kinde/expo - react-native version 0.74.5 - expo version 51.0.32 I'm wondering: are there plans to support the web-based part of expo builds? This will be quite important for the application I'm building since we're planning to allow web users to view the web-based expo build. That might not be the wisest choice but that decision is out of my hands. Let me know if there's anything else I can provide which might be useful. Cheers, Glenn.
5 Replies
lenymo
lenymoOP4mo ago
Thanks @Sam - Insider unfortunately it looks like we are pivoting away from Kinde 😭 Nah the pivot away from Kinde isn't anything to do with the react native / expo integration I was all fired up to get stuck in and figure it out Yeah indeed. Like I said, thanks for your response 🙏
onderay
onderay4mo ago
Sorry to hear @lenymo , any feedback you can give us on why Kinde wasnt the right option for you?
lenymo
lenymoOP4mo ago
Sure yep, I will do my best. I'm not involved in the decision process at all on either our side (dev team) or the client's side but here's what I have gathered so far as reasons the client is choosing a different auth provider: - User data residing outside their primary data store (when using Kinde) - Auth process taking place in a web view (as against natively in an app) Apologies if I have any of that incorrect, I've mostly looked at Kinde from the perspective of implementing it and don't know that much about how things work beyond that.
onderay
onderay4mo ago
Really appreciate this @lenymo . - So they are looking for a on-prem solution? - We unfortuntately dont yet support this.
lenymo
lenymoOP4mo ago
Yep, I believe so.
Want results from more Discord servers?
Add your server