mirror of
https://github.com/samuelthomas2774/nxapi.git
synced 2026-03-21 18:04:10 -05:00
SplatNet 3 authentication
This commit is contained in:
parent
1aa4aad85a
commit
8979c6d28e
|
|
@ -176,8 +176,8 @@ export default class SplatNet3Api {
|
|||
if (token_response.status === 204) {
|
||||
throw new ErrorResponse('[splatnet3] USER_NOT_REGISTERED', token_response, await token_response.text());
|
||||
}
|
||||
if (token_response.status !== 200) {
|
||||
throw new ErrorResponse('[splatnet3] Non-200 status code', token_response, await token_response.text());
|
||||
if (token_response.status !== 201) {
|
||||
throw new ErrorResponse('[splatnet3] Non-201 status code', token_response, await token_response.text());
|
||||
}
|
||||
|
||||
const bullet_token = await token_response.json() as BulletToken;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user