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

App needs to know that Password Recovery happening #30

Closed
awalias opened this issue Nov 6, 2020 · 3 comments
Closed

App needs to know that Password Recovery happening #30

awalias opened this issue Nov 6, 2020 · 3 comments
Labels
enhancement New feature or request

Comments

@awalias
Copy link
Member

awalias commented Nov 6, 2020

the password recovery flow logs the user in and redirects the user to <SITE_URL>#access_token..etc.

need to add a query param either inside gotrue server, to let the user's app know that it's a password recovery

@awalias awalias added the enhancement New feature or request label Nov 6, 2020
@icecream78
Copy link
Contributor

icecream78 commented Nov 7, 2020

@awalias I suggest just pass to redirected query parameter type. That parameter is coming as required field in verify method. It will be cleaner way, I suppose.
What do you think about that?

@awalias
Copy link
Member Author

awalias commented Nov 8, 2020

so we should make the response like:

<SITE_URL>#access_token.....&type=recovery

or

<SITE_URL>#access_token.....&type=signup

?

I think this is a good idea 👍

@icecream78
Copy link
Contributor

I planned cover both cases.
1-st response <SITE_URL>#access_token.....&type=recovery cover task description.
2-nd response <SITE_URL>#access_token.....&type=signup is side affect. User's app can handle or ignore it

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

2 participants