Setup authentication to smart wallets on React Native
In this step you will get your authentication working so users can login with their smart wallets.
Setup your application
First, configure your application and your API Key:
-
Create an app in the dashboard and copy the API Key.
-
Create a
configurationin theSmart Walletsdashboard to enable login methods.
Hold onto your API Key for the next step.
Setup the Alchemy Accounts Provider
Now set up and configure the Alchemy Accounts Provider in your project.
You can do this by wrapping the top level component (e.g. _layout.tsx in Expo or App.tsx in Bare React Native) in your app with the AlchemyAccountsProvider component from the @account-kit/react-native package.
Here’s an example of how to do this:
Choose your authentication
Now that you have set up the Alchemy Accounts Provider, you can setup your authentication!
You can choose from many authentication guides with react native instructions, like this one on Email One-Time Passwords.
Next Steps
Once you have authentication working, you can explore additional features: