Send correct headers when getting a session token

https://github.com/samuelthomas2774/nxapi/issues/60
This commit is contained in:
Samuel Elliott 2023-05-22 23:56:23 +01:00
parent 7b82af5c40
commit ed63648ddf
No known key found for this signature in database
GPG Key ID: 8420C7CDE43DC4D6

View File

@ -14,8 +14,7 @@ export async function getNintendoAccountSessionToken(code: string, verifier: str
method: 'POST',
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
'X-Platform': 'Android',
'X-ProductVersion': '2.0.0',
'Accept': 'application/json',
'User-Agent': 'NASDKAPI; Android',
},
body: new URLSearchParams({