kevin51jiang / react-spotify-auth

Easy Spotify Authentication, written in React
42 stars 17 forks source link

Refresh token? #3

Open kyds3k opened 4 years ago

kyds3k commented 4 years ago

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?

kevin51jiang commented 4 years ago

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

freddieerg commented 3 years ago

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.

kevin51jiang commented 3 years ago

That's a good question.

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

freddieerg commented 3 years ago

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!

ffleandro commented 3 years ago

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

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

robfreundlich commented 2 years ago

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

waldothedeveloper commented 1 year ago

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...