Skip to content
Flutter toolkit for Auth0 API
Objective-C Dart Java C Ruby
Branch: master
Clone or download
Pull request Compare This branch is 8 commits ahead, 8 commits behind devdennysegura:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.

flutter_auth0 plugin

A Flutter plugin to use the Auth0 API & Auth0 PKCE flow.

Note: This plugin is still under development, and some APIs might not be available yet. Feedback and Pull Requests are most welcome!

screen_01 screen_02 screen_02

Example app in this project

In the example/ folder, you will find a test application. See there.

Authentication API


To use this plugin, add flutter_auth0 as a dependency in your pubspec.yaml file.

SignIn with email and password

To signin instance auth0 using auth0-client-id and auth0-domain and call signInWithEmailAndPassword function with email and password as params


Using Authorization Code flow with PKCE


Callback URL(s)

Callback URLs are the URLs that Auth0 invokes after the authentication process. Auth0 routes your application back to this URL and appends additional parameters to it, including a token. Since callback URLs can be manipulated, you will need to add this URL to your Application's Allowed Callback URLs for security. This will enable Auth0 to recognize these URLs as valid. If omitted, authentication will not be successful.

Go to the Auth0 Dashboard, select your application and make sure that Allowed Callback URLs contains the following:





To use


In the file android/app/src/main/AndroidManifest.xml you must make sure the MainActivity of the app has a launchMode value of singleTask and add the following activity:

So if you have as your Auth0 domain you would have the following MainActivity configuration:


Create the file


Inside the ios folder find the file AppDelegate.[swift|m] add the following to it

Inside the ios folder open the Info.plist and locate the value for CFBundleIdentifier, e.g.


and then register a URL type entry using the value of CFBundleIdentifier as the value of CFBundleURLSchemes



See the example application source for a complete sample app using the auth0 authentication.

What is Auth0?

Auth0 helps you to:

  • Add authentication with multiple authentication sources, either social like Google, Facebook, Microsoft Account, LinkedIn, GitHub, Twitter, Box, Salesforce, amont others, or enterprise identity systems like Windows Azure AD, Google Apps, Active Directory, ADFS or any SAML Identity Provider.
  • Add authentication through more traditional username/password databases.
  • Add support for linking different user accounts with the same user.
  • Support for generating signed Json Web Tokens to call your APIs and flow the user identity securely.
  • Analytics of how, when and where users are logging in.
  • Pull data from other sources and add it to the user profile, through JavaScript rules.

Create a free Auth0 Account

  1. Go to Auth0 and click Sign Up.
  2. Use Google, GitHub or Microsoft Account to login.


Denny Segura

This readme based on react-native-auth0


This project is licensed under the MIT license. See the LICENSE file for more info.

You can’t perform that action at this time.