Can I log into Passport.js by sending post requests from a python application?
I made a REST api with Node/express开发者_如何学Go and I added a login feature using Passport.js, I want to be able to login to this from a CLI im making with python.
Im able to send a post request to my login url from my python app and get authorized by passport and send the info i want back to the python program, but once the python program has ended the express app doesn't cache me as logged in and in order to get back any info from the express app i have to send a Post request to the login url every time. The reason I thought this would work is because I can send Post requests from the REST-client extension and the app functions how I want. I have express-session etc set up, like i said it functions how I want with REST-client.
精彩评论