-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement the ResetPasswordUsingToken Feature Component #6
Comments
This is passed down to the theme
|
Init configs for this feature
|
This is passed down to the theme
|
Props passed to this component
|
@NkxxkN if we have to split this feature into two in the future (So that the user can put the enter email form wherever they want), then what would the two features be called?
|
I prefer
I like your suggestions. Let's use |
By default |
@NkxxkN , actually, the redirect URL by default should not be |
@NkxxkN , we have a prop in the signupin feature called |
I missed your comment before merging the PR ^ I'm not sure that we need it actually. In theory we might want to allow a logged in user to reset their password if they'd like which is why I didn't implement In practice, since you need to access the login form and click on "Forgot Password?" link, this will not be possible if a session exists (unless you go specifically to the correct URL). So our current solution is not ideal. The user might have to logout before they can reset their password. |
import { ResetPasswordUsingToken } from "supertokens-auth-react/recipe/emailpassword"
${websiteBasePath}/reset-password
shadow-root
to prevent CSS clashesinit
function as explained in this comment${websiteBasePath}/reset-password
, with a token in the URL, then continue the flow normally.${websiteBasePath}/reset-password
without a token in the URL, the enter email form is showed, otherwise the submit new password form is showed${websiteBasePath}/reset-password?token=...&rid=email-password
The text was updated successfully, but these errors were encountered: