Commit Graph

563 Commits

Author SHA1 Message Date
Jonathan Barrow
fecb062fc1 fix: update imports for eslint 2025-06-18 18:14:39 -04:00
Jonathan Barrow
209f95f20e fix: update Node types 2025-06-18 18:13:51 -04:00
Jonathan Barrow
e01bd005a8 chore: update grpc package version to 2.2.1 2025-06-18 18:13:27 -04:00
Jonathan Barrow
eac5ec9742 feat: implement v2 grpc servers
adds support for the new v2 gRPC servers while maintaining the old ones for legacy clients
2025-06-17 16:55:38 -04:00
Ash Logan
84922a5c51 feat(account): Add device linking data to GetUserData(pid)
This API will be useful for Juxt and other services that want to use device linking for moderation purposes. The data is pretty minimalist to start with to limit exposure.

Requires https://github.com/PretendoNetwork/grpc/pull/3
2025-06-15 00:50:26 +10:00
Jonathan Barrow
204b3aecba Merge pull request #182 from DaniElectra/token-scope-fix
Some checks failed
Build and Publish Docker Image / Build and Publish Docker Image (amd64) (push) Has been cancelled
Build and Publish Docker Image / Build and Publish Docker Image (arm64) (push) Has been cancelled
2025-06-08 19:00:08 -04:00
Daniel López Guimaraes
0209d8bb88 fix: Reapply restriction for NNAS only allowing console tokens 2025-06-08 23:51:07 +01:00
William Oldham
d54ee06de1 fix: pin mii-js at working version 2025-05-20 23:40:09 +01:00
William Oldham
462afd7c04 chore: update docker workflow to be default branch aware 2025-05-20 22:58:17 +01:00
William Oldham
cad56cd5b8 chore: split amd64 and arm64 Docker builds for speed 2025-05-20 22:49:56 +01:00
William Oldham
4f0e51a717 style: ignore mii-js 2025-05-20 22:46:11 +01:00
William Oldham
be69b87e8c Merge branch 'master' into dev
Some checks failed
Build and Publish Docker Image / build-publish (push) Has been cancelled
2025-05-19 23:58:11 +01:00
William Oldham
20125c88aa Merge pull request #151 from PretendoNetwork/eslint
chore: upgrade eslint and use common package
2025-05-19 23:56:18 +01:00
William Oldham
d607e1992d Merge pull request #175 from PretendoNetwork/dependabot/npm_and_yarn/multi-b4d14387f7
Some checks failed
Build and Publish Docker Image / build-publish (push) Has been cancelled
chore(deps): bump body-parser and express
2025-05-19 23:54:43 +01:00
William Oldham
6c04fbd68c style: do eslint format 2025-05-19 23:44:21 +01:00
William Oldham
82b3a44645 chore: upgrade to 0.0.8 of eslint-config 2025-05-19 23:44:13 +01:00
dependabot[bot]
b099208453 chore(deps): bump body-parser and express
Bumps [body-parser](https://github.com/expressjs/body-parser) to 1.20.3 and updates ancestor dependency [express](https://github.com/expressjs/express). These dependencies need to be updated together.


Updates `body-parser` from 1.20.1 to 1.20.3
- [Release notes](https://github.com/expressjs/body-parser/releases)
- [Changelog](https://github.com/expressjs/body-parser/blob/master/HISTORY.md)
- [Commits](https://github.com/expressjs/body-parser/compare/1.20.1...1.20.3)

Updates `express` from 4.18.2 to 4.21.2
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/4.21.2/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.18.2...4.21.2)

---
updated-dependencies:
- dependency-name: body-parser
  dependency-version: 1.20.3
  dependency-type: indirect
- dependency-name: express
  dependency-version: 4.21.2
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-19 22:37:39 +00:00
William Oldham
7ca76be4e0 chore: run npm audit fix 2025-05-19 23:36:28 +01:00
William Oldham
78924d8baa chore: upgrade eslint and use common package 2025-05-19 23:34:54 +01:00
William Oldham
48aa60bfec Merge pull request #173 from PretendoNetwork/dependabot/npm_and_yarn/braces-3.0.3
chore(deps): bump braces from 3.0.2 to 3.0.3
2025-05-19 23:29:51 +01:00
William Oldham
c38baedbf3 Merge pull request #174 from PretendoNetwork/dependabot/npm_and_yarn/multi-8a59521ea1
chore(deps): bump ip and socks
2025-05-19 23:29:24 +01:00
William Oldham
4c32e5babe Merge pull request #172 from PretendoNetwork/dependabot/npm_and_yarn/protobufjs-7.5.2
chore(deps): bump protobufjs from 7.2.4 to 7.5.2
2025-05-19 23:28:30 +01:00
dependabot[bot]
781aa2a159 chore(deps): bump ip and socks
Removes [ip](https://github.com/indutny/node-ip). It's no longer used after updating ancestor dependency [socks](https://github.com/JoshGlazebrook/socks). These dependencies need to be updated together.


Removes `ip`

Updates `socks` from 2.7.1 to 2.8.4
- [Release notes](https://github.com/JoshGlazebrook/socks/releases)
- [Commits](https://github.com/JoshGlazebrook/socks/compare/2.7.1...2.8.4)

---
updated-dependencies:
- dependency-name: ip
  dependency-version: 
  dependency-type: indirect
- dependency-name: socks
  dependency-version: 2.8.4
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-19 22:21:34 +00:00
dependabot[bot]
cecc960e3e chore(deps): bump braces from 3.0.2 to 3.0.3
Bumps [braces](https://github.com/micromatch/braces) from 3.0.2 to 3.0.3.
- [Changelog](https://github.com/micromatch/braces/blob/master/CHANGELOG.md)
- [Commits](https://github.com/micromatch/braces/compare/3.0.2...3.0.3)

---
updated-dependencies:
- dependency-name: braces
  dependency-version: 3.0.3
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-19 22:21:05 +00:00
dependabot[bot]
b9771217b5 chore(deps): bump protobufjs from 7.2.4 to 7.5.2
Bumps [protobufjs](https://github.com/protobufjs/protobuf.js) from 7.2.4 to 7.5.2.
- [Release notes](https://github.com/protobufjs/protobuf.js/releases)
- [Changelog](https://github.com/protobufjs/protobuf.js/blob/master/CHANGELOG.md)
- [Commits](https://github.com/protobufjs/protobuf.js/compare/protobufjs-v7.2.4...protobufjs-v7.5.2)

---
updated-dependencies:
- dependency-name: protobufjs
  dependency-version: 7.5.2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-19 22:20:35 +00:00
William Oldham
9ad36992d0 Merge pull request #171 from PretendoNetwork/remove-auth-updates
Some checks failed
Build and Publish Docker Image / build-publish (push) Has been cancelled
Revert auth-update changes and hotpatches related
2025-05-10 00:09:12 +01:00
Jonathan Barrow
a1b5cea250 chore: revert support revert
Some checks failed
Build and Publish Docker Image / build-publish (push) Has been cancelled
2025-05-09 18:44:03 -04:00
Jonathan Barrow
6434e7ce13 chore: revert pnid middleware token type check revert 2025-05-09 18:43:41 -04:00
Jonathan Barrow
959af6997d chore: revert certificate revert 2025-05-09 18:25:57 -04:00
William Oldham
1a3445db5b chore: revert auth-update changes and hotpatches related
Commits:
- f349b9de42
- b9966807c3
- 0bc3af0507
- 008a517947
2025-05-09 18:08:47 +01:00
William Oldham
056e773fe8 style: unused variable in logger
Some checks failed
Build and Publish Docker Image / build-publish (push) Has been cancelled
2025-04-08 22:58:32 +01:00
William Oldham
f349b9de42 fix: don't use the in operator for checking in an array 2025-04-08 22:56:32 +01:00
William Oldham
0a234156c0 chore: add error logging to api middleware 2025-04-08 22:49:58 +01:00
William Oldham
8d647ef2d1 chore: pad numbers in logger 2025-04-08 22:49:47 +01:00
William Oldham
b9966807c3 chore: tidy up unneeded null handling for token generation 2025-04-08 22:18:44 +01:00
William Oldham
0bc3af0507 fix: handle title_id nullability
Some checks are pending
Build and Publish Docker Image / build-publish (push) Waiting to run
2025-04-08 22:09:21 +01:00
William Oldham
dc5b885e0f chore: add better logging to login and register routes
Some checks are pending
Build and Publish Docker Image / build-publish (push) Waiting to run
2025-04-08 00:28:56 +01:00
William Oldham
008a517947 Merge pull request #111 from PretendoNetwork/auth-updates
Update some authentication related checks
2025-04-07 23:50:14 +01:00
Jonathan Barrow
d59c6ef226 Merge branch 'dev' into auth-updates
Some checks failed
Build and Publish Docker Image / build-publish (push) Has been cancelled
2025-04-07 15:36:11 -04:00
Jonathan Barrow
97d5d88008 fix(grpc): add explicit token type check for refresh tokens 2025-04-07 14:39:51 -04:00
Jonathan Barrow
6087dc68ce fix(nnas): correct error message for missing country header 2025-04-07 14:37:15 -04:00
William Oldham
89243ea686 Merge pull request #165 from PretendoNetwork/dev
Some checks failed
Build and Publish Docker Image / build-publish (push) Has been cancelled
Merge Dev to Master
2025-03-22 23:02:04 +00:00
Jonathan Barrow
9c92cfda3b chore(nnas): remove outdated TODO in PNID middleware
Some checks failed
Build and Publish Docker Image / build-publish (push) Has been cancelled
2025-02-03 16:56:59 -05:00
Jonathan Barrow
37971c006d refactor(nnas): check headers and device status in all possible endpoints
Some checks are pending
Build and Publish Docker Image / build-publish (push) Waiting to run
2025-02-03 13:22:30 -05:00
William Oldham
bc7defc80f Merge pull request #152 from PretendoNetwork/token-fix
Some checks failed
Build and Publish Docker Image / build-publish (push) Has been cancelled
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
bc406ec1b5 Merge pull request #99 from ItzSwirlz/dev
Some checks failed
Build and Publish Docker Image / build-publish (push) Has been cancelled
Implement email confirmation for parental controls (send_confirmation/pin/:email)
2025-02-01 20:10:24 +00:00
William Oldham
1197f713dc fix: ensure check returns
Some checks failed
Build and Publish Docker Image / build-publish (push) Has been cancelled
2025-02-01 20:00:49 +00:00
William Oldham
25c9b8b843 Merge pull request #155 from mrjvs/jvs-with-script
Some checks are pending
Build and Publish Docker Image / build-publish (push) Waiting to run
Account deletion/purging script
2025-02-01 19:55:08 +00:00
William Oldham
fdc122b486 chore: resolve review comments
Some checks are pending
Build and Publish Docker Image / build-publish (push) Waiting to run
2025-02-01 11:26:39 +00:00