Tustin / psn-php

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

Auth stopped working #185

Closed podhornyi96 closed 2 years ago

podhornyi96 commented 2 years ago

Method loginWithNpsso stopped working. It worked last time in the second of October. I've tried to use another token, but still the same issue. Looks like PSN has changed something in their login flow. Please, correct me if I'm wrong.

Tustin commented 2 years ago

Strange. Seems like that endpoint still provides access/refresh tokens but any requests requiring authentication will fail. I'll look into this more and provide an update here soon.

Tustin commented 2 years ago

Lol looks like Sony is literally checking User-Agent against what I have in this library (psn-php/{version}) and if it matches, the request fails. I tested it with a random User-Agent (hi sony) and that works fine.

I originally used that custom user agent to see if Sony was actually concerned with this library. It seems like they might be.

Anyways, I'll just change the user agent to match their iOS app and call it a day for now 😉 .

podhornyi96 commented 2 years ago

@Tustin thanks for fast reply! Appreciate your help :)