I use several providers, including credentials provider (email & password) At some point, in the app, user can ask for 'restore password' email where he should get one-time link. After he visits the link (/api/users/quick_link?token=XXX&email) I check if the token is valid and after that my goal is to login user and to redirect him to his profile page.
What have I tried:
What I have not tried: Using REST API.
Because I am not sure how to use it from another api. Just await fetch?
Recap
Short version: after visiting /api/users/login_me_asap?myemail=xxx I want to login user and redirect him.