Comments (7)
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.
@mihaa1 can you share env variable value and some reproducible steps
Thanks
from authorizer.
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.
@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.
- where does
redirect_uri
passed? Im using the react sdk and the full component. The component controls the forgot password - 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.
I suppose you are using
Authorizer
component right?
YES!
thank u!
But why isn't it working when setting the env var?
from authorizer.
@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)
- Feat: libsql / Turso database support HOT 2
- Error message "unauthorized" in browser's console HOT 1
- Bug: After login default page coming before redirect on requested redirect_url
- Remove roles from all the users when a role is removed from env HOT 1
- "Forget password" is shown when magic link is on but basic auth is off HOT 5
- UI elements not responsive on mobile HOT 1
- Add support for mobile based forgot password in `forgot_password` resolver HOT 1
- client_id HOT 11
- dashboard chunks links are wrong
- Enhancement: TOTP Reset After Recovery Code Validation
- Customize super admin panel
- [Feature] Add support for Surreal DB
- basic_auth_signup doesn't trigger with social login HOT 2
- Add Paswordless login with WebAuthN HOT 2
- Question about sessions HOT 1
- Throwing error when using SQLite with volume in Railway HOT 3
- SurrealDB support HOT 1
- Error logging in with incorrect password HOT 5
- app_data is not returned as part of claims HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from authorizer.