jhewt / gumer-psn

A Playstation Network API written in Node.js
MIT License
346 stars 71 forks source link

Feature request: logout #20

Open freeseus opened 9 years ago

freeseus commented 9 years ago

This is not a bug, but I didn't know where else to ask this:

After successfully logging in and getting the access token, is there a way we can log out / purposefully time out the access token?

Basically Sony wants you to login to the PSN using your credentials and then get a token so you can request info for the next hour at which time you need another token. I have a heroku app on a server that has a front-end login that will check the credentials and return basic PSN profile information of whoever logs in. The web worker of the heroku app only gets activated when someone goes to the heroku app url. After that, the web worker shuts down - but I believe the token gets saved and is active for the next hour. So when the next person tries to check this (or a couple people after that), PSN starts temporarily blocking token access for the heroku app.

Is there a simple logout mechanism we could try? I know there is a logout button on Sony's Auth page: https://auth.api.sonyentertainmentnetwork.com/loginSuccess.jsp. Could we execute this same functionality?