Giter Club home page Giter Club logo

Comments (7)

lakhansamani avatar lakhansamani commented on June 10, 2024 1

This is happening because of the react-sdk
let me add prop there in react SDK for this 👍
I suppose you are using Authorizer component right?

from authorizer.

lakhansamani avatar lakhansamani commented on June 10, 2024

@mihaa1 can you share env variable value and some reproducible steps
Thanks

from authorizer.

mihaa1 avatar mihaa1 commented on June 10, 2024

I tried using local instance and prod on railway.
Initially /reset-password was good for me - I create a page with this path in my app, without setting the RESET_PASSWORD_URL env var.

But I saw the link from the email points to app.url?token=123 and not app.url/reset-password/?token=123
Then I tried setting it in the .env in the local instance and in env vars in railway on production instance.
Both didn't work.

I'm trying to understand whether I'm missing something and this env var is not supposed to do what I think.

from authorizer.

lakhansamani avatar lakhansamani commented on June 10, 2024

@mihaa1 so this is how the reset password URL is decided

priority 1: if redirect_uri passed as param to forgot_password
priority 2: if RESET_PASSWORD_URL is set in env (Note: this should be full URL https://some_frontend_app.url/...
priority 3: if none of the above is set we use the default app reset-password /app/reset-password prefixed with your authorizer instance URL

from authorizer.

mihaa1 avatar mihaa1 commented on June 10, 2024
  1. where does redirect_uri passed? Im using the react sdk and the full component. The component controls the forgot password
  2. setting RESET_PASSWORD_URL=http://localhost:5173/login is not working. The email is sent with the link http://localhost:5173?token=123

from authorizer.

mihaa1 avatar mihaa1 commented on June 10, 2024

I suppose you are using Authorizer component right?

YES!
thank u!

But why isn't it working when setting the env var?

from authorizer.

lakhansamani avatar lakhansamani commented on June 10, 2024

@mihaa1 after digging more into the code, I found a possibility where you can do this
Just add redirect_uri in your URL when rendering <Authorizer> component

example https://localhost:8080/forgot-password?redirect_uri='https://abc.com/reset-password'

from authorizer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.