You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using ng-token-auth on my mobile app (ionic/angular) with Devise Token Auth on rails backend. I've been struggling with the password reset process. 'auth:password-reset-confirm-success' is never broadcast after I click on the reset email link. I may just be doing this all wrong, but I wanted to do the password reset from the app after the user hit the confirm link in the email, rather than posting a web form, having them reset there, then go back to the app, etc.
UPDATE: To get the broadcast, you need to have ValidateToken run. my $authProvider.configure:
Then after making the reset request call, I change the state back to SignIn, which forces a page load and ValidateToken, and I get the broadcast. Now, onto handling the password reset from the app.
Never mind, it doesn't work the way I had imagined. I am unable to make password reset work between my mobile app and the rails server.
The text was updated successfully, but these errors were encountered:
I am trying to achieve just the same, my optimal password reset flow would be:
user requests reset mail from the app
user receives email and clicks the reset link from the mail
user is redirected to the app from there (whether it's emulated on my localhost in dev environment or on the app on a real device)
user is signed in for one session and is asked to set a new password
however, I can't get the bit in 3. working where the user is signed in after the click on the link. any help or clarification whether this can even work as I hope is highly appreciated.
I'm using ng-token-auth on my mobile app (ionic/angular) with Devise Token Auth on rails backend. I've been struggling with the password reset process. 'auth:password-reset-confirm-success' is never broadcast after I click on the reset email link. I may just be doing this all wrong, but I wanted to do the password reset from the app after the user hit the confirm link in the email, rather than posting a web form, having them reset there, then go back to the app, etc.
UPDATE: To get the broadcast, you need to have ValidateToken run. my $authProvider.configure:
Then after making the reset request call, I change the state back to SignIn, which forces a page load and ValidateToken, and I get the broadcast. Now, onto handling the password reset from the app.
Never mind, it doesn't work the way I had imagined. I am unable to make password reset work between my mobile app and the rails server.
The text was updated successfully, but these errors were encountered: