A Flutter app that implements authentication with Auth0.
- You need the Flutter SDK installed on your machine. You can follow this guide.
- You need one of Android Studio or Visual Studio Code.
- Login to your Auth0 dashboard or create an account if you don't have an Auth0 account yet.
- Create a new native application on your dashboard. Note the client id of your application.
- Open the native application you just created and add this snippet as your callback URL:
dev.idee.flutterauth0://${YOUR_AUTH0_DOMAIN}/ios/dev.idee.flutterauth0/callback,
dev.idee.flutterauth0://${YOUR_AUTH0_DOMAIN}/android/dev.idee.flutterauth0/callback
Replace ${YOUR_AUTH0_DOMAIN} with your own Auth0 domain, usually something like
idee@auth0.com
.
- Replace the
YOUR_AUTH0_DOMAIN
placeholder inlib/login.dart
andandroid/app/src/main/AndroidManifest.xml
with your Auth0 domain too. - Finally, replace the
YOUR_NATIVE_CLIENT_ID
inlib/login.dart
with the client id of your Auth0 application which you got earlier. - Run your app.