Reputation: 35
I'm building a web app in AppEngine that uses the Spotify API and I can't figure out the best way to store an access/refresh token locally using Python and AppEngine. I've looked into AppEngine's Memcache
which just seems like overkill, and Javascript's localStorage
which just starts to get complicated since I'd have to transfer data back and forth between Python and Javascript constantly.
Upvotes: 1
Views: 323
Reputation: 1301
I'm assuming that you want to save the access token from Spotify. I like to use Datastore to save anything shared between my instances, but I not sure that is the best way to do that, but probably it is a simple and fast way. So, to solve this issue I'll probably to create an entity in Datastore.
Another alternative could be Firestore
Upvotes: 1