Replies: 1 comment 2 replies
-
Yes, you can use Rodauth as a backend for native applications. You'll want to use the json feature, and potentially the jwt feature (if you want to use JWTs for storage instead of session cookies). This allows for a full JSON API (no HTML). You would be responsible for handling the react native views yourself in this case. Rodauth is suitable to use both in a business environment and personal projects. It is very customizable, and any part can generally be easily overridden as needed. In terms of auth flow, it heavily depends on what type of auth you are doing. For simple login/password, there would be a POST request to test whether the login/password is valid. Rodauth is very flexible and there are many additional types of auth it supports (multifactor auth, passwordless auth with email links or webauth). You can see the specs in the Rodauth repository for how to use Rodauth's JSON API for each Rodauth feature (all Rodauth features supported via normal browser requests are supported via a JSON API if the json feature is enabled). I recommend you review Rodauth's website (https://rodauth.jeremyevans.net), and you can post here if you have additional questions that the documentation doesn't cover. |
Beta Was this translation helpful? Give feedback.
-
Hello,
I was considering using rodauth as an authentication solution for a startup and was looking for info regarding implementation in a react native ios application. As far as I've seen, rodauth docs mention use in web apps; however, I've seen no mention of use in native apps.
Is rodauth suitable for use in react native applications? If so, how would I go about dealing with react native views rather than html? Is rodauth suitable for use in a business environment or does this library target personal projects? What would auth flow look like for a native application using rodauth?
I think I had a few more questions, just can't remember them right now, so I'll comment them once they come back to me.
Thanks for any help or advice!
Beta Was this translation helpful? Give feedback.
All reactions