react-spotify-auth icon indicating copy to clipboard operation
react-spotify-auth copied to clipboard

Refresh token?

Open kyds3k opened this issue 4 years ago • 7 comments

Hello,

From what I'm reading, you're supposed to always get a refresh token along with your access token. However, I'm not seeing one in the URL after I return from the auth. Is there something I'm missing?

kyds3k avatar Aug 30 '20 07:08 kyds3k

This library uses Implicit Grant flow to keep it simple, meaning that Spotify doesn't provide a refresh token

kevin51jiang avatar Aug 30 '20 07:08 kevin51jiang

Do you have any plans to make this compatible with Authorization Code Flow with Proof Key for Code Exchange (PKCE)? That would be literally amazing as it's kind of annoying having to get your user to reauth every 2 hours.

freddieerg avatar Mar 10 '21 16:03 freddieerg

That's a good question.

I'm currently doing a rewrite of it in typescript, but after that would you be interested in helping?

kevin51jiang avatar Mar 20 '21 16:03 kevin51jiang

Once you've got the TS rewrite I'd be happy to create a PR with the PKCE Auth Flow. Just @ me on this thread whenever you've got a version ready for me to work with!

freddieerg avatar Mar 22 '21 15:03 freddieerg

Using Auth Flow would need a Backend API to support it right?

Captura de Tela 2021-08-04 às 10 43 07

ffleandro avatar Aug 04 '21 13:08 ffleandro

Any updates on the Typescript rewrite and/or Authorization Code Flow? I'd be interested in helping out with the Typescript rewrite.

robfreundlich avatar Apr 29 '22 13:04 robfreundlich

Any updates on the Typescript rewrite and/or Authorization Code Flow? I'd be interested in helping out with the Typescript rewrite.

Same here @kevin51jiang, I would like to help with the Typescript rewrite as well...

waldothedeveloper avatar Jan 30 '23 15:01 waldothedeveloper