FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login

    Change password flow across devices

    Scheduled Pinned Locked Moved Unsolved
    Q&A
    1
    2
    454
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • danD
      dan
      last edited by

      I have a situation that is a bit confusing. I'm using the hosted login pages, and have both mobile and web apps.

      I have users who start a change password flow on the mobile app, but then want to complete it on the webapp. The issue I'm running into is that the mobile app has a redirect that looks like fusionauth.demo:/oauthredirect but that doesn't work with the webapp, which looks like https://example.com/oauth-redirect.

      So the password ends up being changed, but the user is not sent to the correct redirect URL and so is not logged in to our app correctly.

      Any suggestions?

      --
      FusionAuth - Auth for devs, built by devs.
      https://fusionauth.io

      danD 1 Reply Last reply Reply Quote 0
      • danD
        dan @dan
        last edited by

        You have a few options, none of them great.

        • You could look at using universal links and android app links to make sure the redirect URL for both mobile and web apps has the same format.
        • You could, on the Change Password Template, put in a message making it clear to users that if they started the change password flow on a mobile device, they should finish it on a mobile device (and same with web apps).
        • You could, on the Change Password Template, write javascript to examine the user-agent and the redirect URL. If they are incompatible, you could redirect the user to a device-compatible change password URL (basically by rebuilding the change password link they clicked on to start the flow and then doing a window.location=... call).

        --
        FusionAuth - Auth for devs, built by devs.
        https://fusionauth.io

        1 Reply Last reply Reply Quote 0
        • First post
          Last post