React Native support


#1

Hello All,

Does this package support React Native? If it does, please provide a link or some instructions on how to implement it in React Native.

Thanks,
Farshid


#2

Okta is planning on adding React Native support, I can’t talk about timing quite yet, but I moved this to Feature Requests.

Thanks for reaching out!


#3

Does this mean that for developers currently building an app in React Native Okta is not a consideration at all? I’ve been researching registration/auth for days now and I’m so confused. Is there a way to still use Okta purely as a REST API? I can’t find a simple walk-through on how to add this to a react native app to enable registration and authentication …


#4

It is definitely still possible. Okta is OpenId Connect spec compliant, so you can treat Okta as an OpenID connect provider and use any open source tooling. This means you should be able to use Okta with any tools that enable your application for OAuth 2.0 or OpenId Connect (OpenId Connect is an extension on top of OAuth 2.0).

Okta also has an Authentication API which is targeted for developers who want to build their own end-to-end login experience to replace the built-in Okta login experience.


#5

Ok, thanks for the info. When using the Authentication API, how does the app register new users with Okta? I only saw reference to that as a non-GA feature, but how does anyone use Okta if new users can’t register?


#6

Since Okta supports OAuth and OIDC, you should be able to use open source OAuth libraries for React Native. I’d suggest trying one of the following:

Please report back on your experience with these libraries if you have time.


#7

One other point for me is that I’m, like many newer developers, am using Expo which would require you to ‘eject’ the app to link in native libraries, which these OAuth libraries seem to be. Then you lose a lot of the nice features of the Expo environment. So I’m thinking a direct API integration might be the most appropriate solution for my needs. Are there any concerns with that, possibly not being OIDC compliant or something?


#8

I was able to get https://github.com/FormidableLabs/react-native-app-auth working this week. Its example only requires you to change a few properties to work with Okta. It did seem to get rid of the Expo environment, but I was still able to hot reload the code on an emulator.


#9

Any Updates on this? I tried out the sample which is on the okta Homepage. It feels clumsy as hell… maybe somebody can give me a helping hand?