Flutter and Auth0

Hi Jeremy, Have you guys taken further look at the Flutter API’s to connect to Auth0? Very keen and excited to get started, If possibly you have something to share, I can try contribute as we better the login’s for Flutter?

We don’t have anything official at this time, but @dev.dennysegura put something together above that is probably a good starting point!

Yep, it will be great if you can actually join forces and co-develop something community driven!

Also adding Show your Auth0 tag to it once publishing in community might get you more people interested in contributing to it

I agree, And I am starting today to try and get a universal Widget for Flutter that can use most to All of the Auth0 features. Please feel free to keep in Contact and we can all try to contribute to a brilliant widget.

My Plan currently is standard Login Procedure that’ll return the token and then eventually move to biometric services

tian@nerdit.co.za (Email + Github)


That’s great! Keep us updated to so we can help you spread the news once you move forward!

Hi Guys we are very close to getting this right but now just need to find out how to add the expiry of a token in the request. Currently we are able to log in but the token expired immediately.

var user = await auth.passwordRealm(
        username: "yours@email.com",
        password: "**********",
        scope: "openid profile",
        realm: "Username-Password-Authentication",

Here’s our doc ion setting token expiration time:


That’s been set in the dashboard and has no effect on the return.

This is what we are getting

flutter: {access: oo-sHVAC34dcdcaiHN9CACZMJyhOfYOO, scope: null, expire: 2019-01-23 14:49:22.738885, type: Bearer}

It expires immediately after being actions

This is received after using @dev.dennysegura dependency

Hi @TianSc, I regret the delay, do you still have that problem?

Hi @dev.dennysegura, I unfortunately still have the same issue seem to be battling with the native Auth0’s login without using a webView and all documentation leads to webView.

I tried various methods Flutter using Native iOS and Android SDK’s, PHP SDK and still ended up going through the webView login

@TianSc, thanks for report this, it really was a mistake in the plugin, but this was fixed in version 0.2.1 uploaded recently.


1 Like

Thanks @dev.dennysegura for sharing that!

@dev.dennysegura @devs_auth0 Are there any way to use Auth0 mobile flow and single sign on together?

Can anyone helps me?
I followed @dev.dennysegura instruction to configure my app. Everything ran well with my first Auth0 account but the problem came when I switched to some other Auth0 accounts and also configured them like the first one. I can’t go to auth0 login page when using web authorize, it only showed a blank page.

1 Like

Hey there @khoink!

Have you tried reaching to @dev.dennysegura about that via GitHub repo?

Just adding my vote for an officially supported solution for using Auth0 + Flutter.

1 Like

I’ve had the same behavior, have you figured out how to get around this? @dev.dennysegura I’ve opened an issue on the project for this issue. Any ideas on how to get past the blank web page in the web.authorize method?

+1 for official Flutter support :slight_smile: