Was React Native a bad decision, ugly authentication has me ready to switch

14 points by robertAngst ↗ HN
I found that to authenticate using Javascript Server, it requires using implicit grants on the API.

This looks uncomfortably cheap, with the web browser opening to authenticate.

I dont think I can have something that looks so primitive for my app, even if it is additional security.

Considering doing full development for Web, android, and iphone. I already have my back end done.

React Native doesnt seem useful if I need to authenticate using web. Any ideas before I buy my first apple product ever and go full iOS?

7 comments

[ 5.1 ms ] story [ 23.9 ms ] thread
What service are you using for authentication? We’re using Identity Server 3. On the web we use the implicit grant but on mobile (React Native) were using the Resource Owner (Password) grant which works just fine.
Mobile solutions? Check out Flutter!
I can back this up. Flutter is really good stuff. Much better than react native.
What makes it better in your eyes?

For a shop using React already, would you recommend Flutter over RN?

I don’t understand what requires a web view here. You should be able to do anything another app can do (especially if you’re willing to write some custom native code, which I assume you are if you’re considering full native).
> I found that to authenticate using Javascript Server, it requires using implicit grants on the API. This looks uncomfortably cheap, with the web browser opening to authenticate.

This sounds very odd and unlikely. Can't you just make HTTP requests by writing some JS?

Maybe there is more you need to tell us to fill us in why the "implicit grants" are needed. I am taking it as "implicit grants" means permissions popup dialogs from iOS / Android. (https://www.androidhive.info/wp-content/uploads/2016/11/andr...)

Tell us more (links to the API docs for example) and it will make it easier to answer your question.

Disclosure: I am not affiliated with that link. I just googled for a picture and that was the first I found.