BrandonErik-FS / wdv339_spotify-search

0 stars 0 forks source link

Setup & Configure A Database to Store Spotify Access Tokens #9

Closed BrandonErik-FS closed 1 year ago

BrandonErik-FS commented 1 year ago
BrandonErik-FS commented 1 year ago

I created a UserToken Mongoose model to store user JSON web tokens in the MongoDB database. I also added find, create and update functions within the spotifyController and validateToken files to save and update any token as needed in the database.