Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doubts about token expiration time #247

Open
julianolandim opened this issue Mar 21, 2023 · 2 comments
Open

Doubts about token expiration time #247

julianolandim opened this issue Mar 21, 2023 · 2 comments
Labels

Comments

@julianolandim
Copy link

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
Copy link
Collaborator

Ragowit commented Mar 21, 2023

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
Copy link

stale bot commented May 21, 2023

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.

@stale stale bot added the wontfix label May 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants