account/src
Ash Logan b9cf3194fc
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
fix: Seperate token checks by type
Give each expected token type a seperate function and un-export the "generic" one.

This required deciding what the "expected" token type is for all endpoints. Possibly contraversial choices are:

- API tokens only on the HTTP API (no service tokens)
- API tokens only on the gRPC APIs
- API tokens only on ExchangeTokenForUserData (I could only find 1 user of this API - BOSS - and they use API tokens here)

Notably, there is now no way to get the account server to validate a service token - services must decrypt them locally. We should probably add an API for this for the benefit of third parties.
2025-06-22 19:54:27 +10:00
..
assets feat(email): add forum as a support option 2025-01-30 13:30:16 +01:00
middleware fix: Seperate token checks by type 2025-06-22 19:54:27 +10:00
models style: do eslint format 2025-05-19 23:44:21 +01:00
services fix: Seperate token checks by type 2025-06-22 19:54:27 +10:00
types chore: update Token/TokenOptions types to use SystemType and TokenType 2025-06-21 17:29:47 -04:00
views fix: typo in server selection svg for dev 2024-06-06 18:45:26 -05:00
cache.ts style: do eslint format 2025-05-19 23:44:21 +01:00
config-manager.ts style: do eslint format 2025-05-19 23:44:21 +01:00
database.ts fix: Seperate token checks by type 2025-06-22 19:54:27 +10:00
logger.ts style: do eslint format 2025-05-19 23:44:21 +01:00
mailer.ts style: do eslint format 2025-05-19 23:44:21 +01:00
nintendo-certificate.ts style: do eslint format 2025-05-19 23:44:21 +01:00
server.ts style: do eslint format 2025-05-19 23:44:21 +01:00
util.ts fix: update remaining magic numbers for system/token types 2025-06-21 17:27:49 -04:00