Thank you for the great idea! I did it with Spotify API and it works! I am able to authenticate users and save the refresh token in the DB and later run Backend workflow to get the recent history from Spotify for all Users without them being logged in.
My problem is that this way I do not login the users like I do if OAuth User Agent flow is used. Now I āCreate an account for someone elseā right after authentication, so the users and saved tokens are there, but if I donāt use the OAuth User Agent or Password, I can not login the users so Current User is not available.
On the flip side, when I use OAuth User Agent users are logged in, but then I can not store their Access and Refresh tokens for the Backend flow I run every 60min
Really stuck on this right now 