Commit Graph

352 Commits

Author SHA1 Message Date
Jonathan Barrow
b69349f248 v1/api/people/@me/deletion is POST not PUT 2023-06-12 21:19:45 -04:00
Jonathan Barrow
9c3a80be4a Added support for comma separated headers 2023-06-11 21:07:39 -04:00
Jonathan Barrow
26e87b133c Improved PID tracking 2023-06-11 09:51:13 -04:00
Jonathan Barrow
b36c63a0b3 Added better console tracking 2023-06-11 07:46:27 -04:00
Jonathan Barrow
c1d39a4b13 Token access level is now a signed int to allow negative numbers 2023-06-10 20:08:31 -04:00
Jonathan Barrow
15b6f1f4a3 Renamed getPNIDByBearerAuth to getPNIDByTokenAuth (not all tokens are bearer) 2023-05-31 21:31:48 -04:00
Jonathan Barrow
dee432b4a0 Added gRPC service for the API (for future use) 2023-05-31 21:29:41 -04:00
Jonathan Barrow
9c16196435 Fixed missing crc on website tokens 2023-05-31 20:55:41 -04:00
Jonathan Barrow
11984e12a4 Added missing fields to API tokens 2023-05-03 19:49:51 -04:00
Jonathan Barrow
0db626a2b5 Updated API token format 2023-05-03 19:38:49 -04:00
Jonathan Barrow
3c03ce8509 fixed website grant type check 2023-05-03 17:40:26 -04:00
Jonathan Barrow
8b578c750a Removed password change from PNID.scrub and added 0112 error on deleted accounts 2023-05-03 12:19:55 -04:00
Jonathan Barrow
298bcf7b45 updated migrations 2023-05-02 22:01:39 -04:00
Jonathan Barrow
fc994bf84d Added migration to add missing server AES keys 2023-05-02 15:28:43 -04:00
Jonathan Barrow
82cba5dd06 Added friend code migration 2023-05-02 15:03:24 -04:00
Jonathan Barrow
9f68827337 Generate 3DS friend code when registering 3DS NEX account 2023-05-02 14:37:11 -04:00
Jonathan Barrow
d269258b61 Added token checksum to non-access/refresh tokens 2023-05-01 15:02:04 -04:00
Jonathan Barrow
a4bc671957 Added deleted field to gRPC getUserData method 2023-04-29 17:58:20 -04:00
Jonathan Barrow
eeab60ae26 Removed useless calls to response.status(200) (200 is default) 2023-04-29 17:51:36 -04:00
Jonathan Barrow
20ddbe7552 Explicitly set each non-200 status on each response 2023-04-29 17:50:56 -04:00
Jonathan Barrow
43432902c4 Replaced all instances of response.end with response.send 2023-04-29 17:42:27 -04:00
Jonathan Barrow
60b6392153 Added return types to route handlers 2023-04-29 17:40:54 -04:00
Jonathan Barrow
b9481892e0 Removed unsafe .get() calls from Mongoose documents 2023-04-29 15:39:20 -04:00
Jonathan Barrow
cc62c8dad3 Removed unused PNIDgetServerMode method 2023-04-29 15:30:12 -04:00
Jonathan Barrow
d821802088 Add types to PNID.updateMii params 2023-04-29 15:27:41 -04:00
Jonathan Barrow
91e1537b10 Call PNID.updateMii when scrubbing to generate default Mii images 2023-04-29 15:25:18 -04:00
Jonathan Barrow
65f057c47a Added deleted flag to PNIDs 2023-04-29 14:52:18 -04:00
Jonathan Barrow
8b7296543d Cancel Stripe subscription during PNID scrubbing 2023-04-29 14:48:19 -04:00
Jonathan Barrow
50089e0435 Added PNID.scrub method to remove personal information 2023-04-29 14:32:04 -04:00
Jonathan Barrow
4f19993889 Only use fcdcert as the source of truth for 3DS consoles 2023-04-29 13:27:39 -04:00
Jonathan Barrow
adb44380c6 Added server maintenance mode check 2023-04-28 19:36:31 -04:00
Jonathan Barrow
c0e4395b80 Removed useless await from getPNIDByBearerAuth 2023-04-28 16:18:47 -04:00
Jonathan Barrow
d46a9413b4 Changed decryptToken to always use the account server key 2023-04-28 16:02:31 -04:00
Jonathan Barrow
379d1895c2 Added more logging when starting server 2023-04-28 14:15:49 -04:00
Jonathan Barrow
12ad6b39c6 Made gRPC server port configurable 2023-04-28 13:59:19 -04:00
Jonathan Barrow
85d9c65989 Added getUserData gRPC method 2023-04-27 23:58:02 -04:00
Jonathan Barrow
528882b9e8 Fixed PNID Stripe connection type 2023-04-27 23:41:26 -04:00
Jonathan Barrow
b67b266b8d Added missing Stripe connection on PNIDs 2023-04-27 23:34:49 -04:00
Jonathan Barrow
1e42569cbb Updated image-pixels type definition 2023-04-27 16:08:31 -04:00
Jonathan Barrow
6c6ff81db1 Removed unused example.config.json 2023-04-27 16:03:35 -04:00
Jonathan Barrow
c420997de0 Updated example.env 2023-04-27 16:03:15 -04:00
Jonathan Barrow
dc036cd662 Added SETUP.md and updated README 2023-04-27 16:01:58 -04:00
Jonathan Barrow
da73236e74 Merge pull request #65 from PretendoNetwork/ts-migration
TypeScript migration
2023-04-27 15:35:35 -04:00
Jonathan Barrow
d6d92ca27c Added types to modules without types 2023-04-27 15:05:22 -04:00
Jonathan Barrow
84c2086da2 Updated build command 2023-04-27 14:39:02 -04:00
Jonathan Barrow
36bf30a64a Replace rm -rf with rimraf 2023-04-27 14:38:28 -04:00
Jonathan Barrow
bbf6a9340a Fix linting issues 2023-04-27 14:38:03 -04:00
Jonathan Barrow
2de196a649 Updated lint and build commands 2023-04-27 14:35:27 -04:00
Jonathan Barrow
55ee3ce18b Changed token format to be much smaller (thanks 3DS) 2023-04-01 11:15:59 -04:00
Jonathan Barrow
2e0bb207a9 Fixed bug where 0.0.0.0:0 NEX addresses were seen as invalid 2023-03-31 16:15:36 -04:00