Using React FeaturesComponents
OktoProvider
Learn more about the main OktoProvider here.
Installation
This is the main provider for the Okto SDK. It is used to initialize the SDK and pass in settings. Learn how to install the SDK and add the context provider here.
Initializing the OktoProvider
To get started with authentication, we'll initialize the Google OAuth provider in the index.js
file.
Now, let's set up the Okto provider in your App.js
:
Conclusion
Congratulations! That's all you have to do for initializing the Okto Provider in your React app.