Tustin / psn-php

A PHP wrapper for the PSN API
https://tustin.dev/psn-php/
MIT License
354 stars 73 forks source link

Doubts about token expiration time #247

Open julianolandim opened 1 year ago

julianolandim commented 1 year ago

I would like to know if every 60 minutes I need to redo the whole process to get a new Npsso code? That is, every 60 minutes do I need to log into the psn website to get another code? Isn't there a way for the token to have a longer lifetime?

Ragowit commented 1 year ago

No, you don't need to redo the whole process every 60th minute.

Get the refresh token, and login with that next time you use psn-php. Rinse and repeat. You can even use your previous token, but get a refresh token is the preferred way. Read more about it in the documentation here: https://tustin.dev/psn-php/#/authorization?id=future-logins

With that said, occasionally so does Sony logout everyone from their system. And in these cases so will you have to do the process all over again.

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.