Jonathan Barrow
9c92cfda3b
chore(nnas): remove outdated TODO in PNID middleware
2025-02-03 16:56:59 -05:00
Jonathan Barrow
37971c006d
refactor(nnas): check headers and device status in all possible endpoints
2025-02-03 13:22:30 -05:00
William Oldham
bc7defc80f
Merge pull request #152 from PretendoNetwork/token-fix
...
Fix for Invalid Service Token error - Refresh Token Duration same as Access Token
2025-02-02 10:26:43 +00:00
William Oldham
0578bfd501
chore: move back to number types for token, with const enum
2025-02-02 10:21:31 +00:00
William Oldham
1197f713dc
fix: ensure check returns
2025-02-01 20:00:49 +00:00
William Oldham
fdc122b486
chore: resolve review comments
2025-02-01 11:26:39 +00:00
William Oldham
8f2e6fc088
fix: use enum values for token property comparison
2025-01-31 23:33:37 +00:00
William Oldham
c7a230b860
style: add return type to fix eslint
2025-01-31 23:30:24 +00:00
William Oldham
577b5020b0
style: fix eslint issues in login
2025-01-31 23:05:45 +00:00
William Oldham
169e686944
feat: use "enum" for token system type
2025-01-31 23:05:11 +00:00
William Oldham
cad2d0e68e
chore: use different oauth refresh expiry for NNAS and API
2025-01-31 23:05:11 +00:00
William Oldham
2a00924264
feat: use "enum" for token type
2025-01-31 23:05:11 +00:00
William Oldham
e3c78476ab
style: fix linting issues
2025-01-31 23:05:11 +00:00
William Oldham
79bc90852b
chore: don't use await when not needed
2025-01-31 23:05:11 +00:00
William Oldham
1ecb7ad473
fix: make refresh token expire longer than access token, and centralise oauth generation
2025-01-31 23:05:11 +00:00
Jonathan Barrow
d28ccbdf95
chore: check if PID and device is valid in NNAS email routes
2025-01-31 15:55:55 -05:00
Jonathan Barrow
2385caae55
chore: add missing device ID to 3DS consoles
2025-01-31 15:55:55 -05:00
Jonathan Barrow
43f240f864
chore: add early return to NNAS confirmation email resend if already verified
2025-01-31 15:55:54 -05:00
Jonathan Barrow
d5dcdcb7de
chore: add early return to NNAS email verification if already verified
2025-01-31 15:55:54 -05:00
Jonathan Barrow
5ab424d67d
chore: add warning against sharing request data to NNAS OAuth
2025-01-31 15:55:54 -05:00
Jonathan Barrow
4da4ef0a65
chore: timezone json spaces to tabs
2025-01-31 15:53:20 -05:00
Jonathan Barrow
4db3be92a0
fix: unescape timezone json
2025-01-31 15:53:19 -05:00
Jonathan Barrow
e6b9448d32
fix: remove unique constraint from 6 digit email code
2025-01-31 15:53:18 -05:00
Jonathan Barrow
302956d5f2
refactor: add explicit token handling functions
2025-01-31 15:53:18 -05:00
Jonathan Barrow
3e410ede7d
fix: validate padding in certificates
2025-01-31 15:53:17 -05:00
Jonathan Barrow
7f3b755b3a
fix: make NNAS middleware only allow Basic tokens on "devices" endpoints
2025-01-31 15:53:17 -05:00
Jonathan Barrow
8e557fc072
fix: make NNAS middleware only accept console tokens
2025-01-31 15:53:14 -05:00
William Oldham
1653b09988
Merge pull request #158 from AToska21/return-server
...
Return the server a tier below if it does not exist
2025-01-31 16:19:39 +00:00
Andrea Toska
8604d19993
fix(servers): missed a few semicolons, oops
2025-01-31 17:05:05 +01:00
Andrea Toska
c769cf3d23
fix(servers): use find query to lessen db load
2025-01-31 17:03:03 +01:00
Andrea Toska
ed780efb1e
feat(servers): use the server a tier below if it does not exist
...
If a server does not exist in a tier, use the tier below it.
For example, if a user is in the test access level, but a server for that game only exists on prod, use that server.
Same for the dev access level, but it goes dev --> test --> prod
2025-01-31 09:39:08 +01:00
William Oldham
6802d39bed
Merge pull request #153 from AToska21/forum-contact
...
Add forum as a support option to the account confirmation emails.
2025-01-30 12:38:25 +00:00
Andrea Toska
d81f3d39c4
feat(email): add forum as a support option
2025-01-30 13:30:16 +01:00
William Oldham
cafea2ffa9
Merge pull request #128 from PretendoNetwork/api-return-user-stripe-tier
...
Return the PNID's Stripe tier name and level from the PNID details API
2025-01-29 19:50:12 +00:00
William Oldham
d170450e4b
Merge pull request #143 from PretendoNetwork/bucket-config
...
Mii uploads: use config for bucket name
2025-01-18 18:08:20 +00:00
Billy
6e724c2e60
nit: don't use an escaped string when a variable is fine.
2025-01-18 17:59:50 +00:00
Billy
6d821d6af5
Mii uploads: use config for bucket name
2025-01-18 17:52:58 +00:00
William Oldham
04d206e3ed
Merge pull request #135 from AToska21/dev
...
Fix up setup instructions
2025-01-13 11:44:16 +00:00
Andrea Toska
18bd158968
fix(setup): rename SES environment var
...
missed this, it needed to be SECRET_KEY, not ACCESS_SECRET.
2025-01-13 12:37:21 +01:00
Andrea Toska
d2ebb9f2ca
feat(setup): fix up setup instructions
...
they were pretty outdated, still referencing using SMTP, but the server migrated to amazon SES.
2025-01-13 11:41:46 +01:00
Jonathan Barrow
1e595e6518
Merge pull request #131 from AToska21/dev
2025-01-12 17:38:17 -05:00
Natsuki ツ
55dacc467b
feat(error): add the correct ban error codes
2025-01-12 21:30:26 +01:00
Matthew Lopez
3002980c81
chore: return the PNID's Stripe tier name and level from the PNID details API
2024-12-11 21:30:59 -05:00
Jonathan Barrow
374d468e2a
Merge pull request #123 from binaryoverload/dev
2024-11-06 11:53:30 -05:00
William Oldham
54dfed9346
Fix missing semicolon
2024-10-16 15:20:19 +01:00
William Oldham
83dab9bb5d
Use appropriate error message and status code for register route
2024-10-16 15:20:19 +01:00
William Oldham
eb31c88f83
Add S3 config option for region and path-style
2024-10-16 15:20:19 +01:00
Jonathan Barrow
875e75f08f
Merge pull request #118 from binaryoverload/dev
2024-09-25 10:15:11 -04:00
William Oldham
0c03aa46ba
Fix middleware logic
2024-09-24 20:42:19 +01:00
Jonathan Barrow
988ce63cd9
Merge pull request #117 from binaryoverload/dev
2024-09-24 13:00:25 -04:00