Skip to content

Phone Authentication - Custom Routing Fails #161

@mustaphaarakji

Description

@mustaphaarakji

https://intercom.help/flutterflow/en/articles/6300011-custom-routing-when-a-user-logs-in

I'm following the above article, I need to route the admin user to the admin home page only if the "role" field is set to "admin". I have a condition on my "missiongControl" page to check if the user "role" == admin, this works fine, routing is successful, but it breaks the authentication persistance session. So everytime the user closes the web browser and open it again, he will need to go through the authentication process again. The expected behaviour for the authentication session to persist.
If I remove the condition on "missionControl" page, the authentication session persists successfully.

Expected behavior (required)

Authentication session should persist, even if I have a condition on the "missonContorl" page.

Current behavior (required)

Everytime the user close his browser, re-open it again, he will need to authenticate, enter his phone and sms code.

To Reproduce (required)

Simply follow this guide as documented by flutterflow team: https://intercom.help/flutterflow/en/articles/6300011-custom-routing-when-a-user-logs-in

  1. create a phoneSignIn page
  2. create an smsCode page
  3. create a missionControl page
  4. create adminHomePage
  5. complete the usual steps to configure authentication
  6. Configure authenticaiton in flutterflow
    image
  7. configure missionControl on pageLoad
    image

Bug Report Code

I've create a new project only to simulate this bug, here the Bug Report Code:

ITFficnf8cpIsdtK0L6JcO4w+WAUJk8cTIMziNZ+exUbfaL1Bu0XPMylSExBTbCjaVNcBlD+/ToCpvCOkfOWDsdcGyWtR4hi1pFUWw32KTbkEuzyT+3IHDUHZbsSXTTm

Context (required)

Authenticating everytime the user need to access the application will discourage him from using it, making the application useless.

Screenshots / recordings

image

Your environment

  • FlutterFlow: v3.0
  • Platform: Web only
  • Browser name and version: Chrome / Safari
  • Operating system and version (desktop or mobile): Windows 11 (Desktop, using Chrome), Android 13 (Mobile, using Chrome), macOS 12.6 (using Safri)

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions