Setting up NextAuth using Spotify Provider. #1893
-
I'm creating a personal project and I'm having a hard time understanding how Next Auth works with the Spotify API. To be more exact I'm having trouble understanding the use of the refresh token. Does Next Auth take care of that for us or do we have to set it up on our own? And if so is the refresh token necessary? I've already figured out how to log in and check if a user is logged in but just curious if that's all i need to do to start collecting data from the api. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
token rotation is currently not a built in feature, but we have a user land tutorial for it. it might help you get started: |
Beta Was this translation helpful? Give feedback.
-
Thanks I got it working. For some reason I'm not getting the email and profile pic but I''ll figure it out eventually. Appreciate the help. |
Beta Was this translation helpful? Give feedback.
token rotation is currently not a built in feature, but we have a user land tutorial for it.
it might help you get started:
https://next-auth.js.org/tutorials/refresh-token-rotation