Skip to content
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

Add changePassword with Ticket for not logged in user #94

Open
lennyd7 opened this issue Dec 3, 2022 · 6 comments
Open

Add changePassword with Ticket for not logged in user #94

lennyd7 opened this issue Dec 3, 2022 · 6 comments
Assignees
Labels
enhancement New feature or request

Comments

@lennyd7
Copy link

lennyd7 commented Dec 3, 2022

I want to add the password with ticket option https://docs.nhost.io/reference/javascript/auth/change-password as a forget password feature for our users. The current changePassword method is only available for logged-in users.

The issue relates to the flow and PRs described here nhost/nhost#594.

@mhadaily mhadaily self-assigned this Dec 4, 2022
@mhadaily mhadaily added the enhancement New feature or request label Dec 4, 2022
@mhadaily
Copy link
Contributor

The ticket param was added to the changePassword method. However, it's available in our newest DEV version for Dart SDK.

You can check https://pub.dev/packages/nhost_sdk/versions/4.0.0-dev.8

The new SDK requires you to pass subdomain and region instead of the backendUrl.

@vipafattal
Copy link

@mhadaily I already migrated to V3.0 but am having trouble implementing the rest password in my web app.

I use the restPassword(email: userEmail) method, then I receive a mail that redirects to my app as follows MY_FRONT_END_URL/refreshToken=9e1e0d6a-b1bc-4612-9f78-8721d59bd5a4&type=passwordReset but the new change password method needs a ticket number and I am unsure where to get that from.

Any tips? thanks in advance.

@mhadaily
Copy link
Contributor

mhadaily commented Apr 4, 2023

I am unsure I need to investigate a bit, because as far as the SDK implementation, we just call an endpoint in the backend of nhost, let me ask around and give you an answer.

@vipafattal
Copy link

vipafattal commented Jun 5, 2023

Hi @mhadaily any updates on this? thanks

@mhadaily
Copy link
Contributor

mhadaily commented Jun 6, 2023

Unfortunately, I was pulled out of it for an unforeseeable future.
I still have access, but I need to confirm everything with @nunopato

@vipafattal
Copy link

Do you have any docs on how to implement forget the password feature? As it's not really clear how to utilize the refreshToken that is delivered to the user's mail.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants