angular-spotify icon indicating copy to clipboard operation
angular-spotify copied to clipboard

Using Authorization Code Flow

Open passkey1510 opened this issue 9 years ago • 9 comments

Hi, do you consider using Authorization Code Flow so that we could get a refresh token to use when needed.

passkey1510 avatar Oct 02 '15 15:10 passkey1510

Yeah been thinking about changing it to use that flow. Maybe will change for the 2.0 release.

eddiemoore avatar Oct 16 '15 03:10 eddiemoore

Eddie, thanks for this helpful service. It looks like you did a V2 release. Did you end up changing it to use the authorization code flow? I am able to get the access token, but not sure how to adjust to get a refresh token. Thanks much.

shawns582 avatar May 10 '16 20:05 shawns582

Hi @shawns582 haven't finished the v2 release yet. Finding time to do it :p Yes the different auth workflow is in the plans.

eddiemoore avatar May 10 '16 21:05 eddiemoore

Awesome! Looking forward to it.

shawns582 avatar May 11 '16 00:05 shawns582

Some one can explain me how to store the token after the login? how can i use with the authorized api call? Pleaseee

mscalessio avatar Aug 15 '16 14:08 mscalessio

What about that "Authorization Code Flow"?

pkurcx avatar Dec 13 '16 13:12 pkurcx

I'm having the same problem. Would love to be able to refresh the token. Everything else is great! Thanks very much and looking forward to v2 :)

lukepoulton avatar Feb 13 '17 22:02 lukepoulton

+1 on this, one of the most well-written and well-documented libraries I've come across. I find that if a user isn't authenticates, I cannot programmatically log them in, they need to click a button directly in order to initiate the popup window I think? Anyway, workaround for me is to check for a 401 error and tell the user to click the "login to spotify" button, then try the action again.

shmert avatar May 15 '18 04:05 shmert

Sorry I haven't had any update on this. Haven't been working with Angular in the last few years and this project has fallen victim to that. I'll try and find some time to get this updated.

eddiemoore avatar May 15 '18 07:05 eddiemoore