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
Jonathan Barrow
82d353357b
chore: updated comments to use Better Comments syntax
2024-04-14 19:41:47 -04:00
Jonathan Barrow
cb10a16668
chore: removed unnecessary type declarations
2024-04-14 19:16:25 -04:00
Jonathan Barrow
2bc1d9cf8e
nnas: renamed nnid service to nnas
2024-04-14 18:02:01 -04:00
Jonathan Barrow
976c1bf21f
NNID service tokens now check client_id for generation
2023-06-14 12:58:09 -04:00
Jonathan Barrow
15b6f1f4a3
Renamed getPNIDByBearerAuth to getPNIDByTokenAuth (not all tokens are bearer)
2023-05-31 21:31:48 -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
55ee3ce18b
Changed token format to be much smaller (thanks 3DS)
2023-04-01 11:15:59 -04:00
Jonathan Barrow
00b1aecd70
Fixed token generation for production users
2023-03-30 10:22:31 -04:00
Jonathan Barrow
f977d77c5c
Renamed user functions to PNID for clarity
2023-03-19 13:46:29 -04:00
Jonathan Barrow
b89d3a15b0
Renamed user variables to better match their types
2023-03-19 13:42:08 -04:00
Jonathan Barrow
5b00bae36f
Removed .get calls on documents
2023-03-19 13:27:28 -04:00
Jonathan Barrow
dd952954fd
Enable strict mode in TS and fix most issues with it
2023-03-17 17:39:46 -04:00
Jonathan Barrow
e508dd95d4
Removed unneccesary casts
2023-03-17 16:18:18 -04:00
Jonathan Barrow
9f3d5c4a35
Removed default exports in favor of named exports
2023-03-17 16:16:10 -04:00
Jonathan Barrow
15042f3ee5
Removed RegExp from getUserByEmailAddress
2023-03-17 15:02:20 -04:00
Jonathan Barrow
c7626de1f1
Revert "revert me"
...
This reverts commit 928e6f6701
.
2023-03-08 17:11:26 -05:00
Jonathan Barrow
928e6f6701
revert me
2023-03-08 17:11:17 -05:00
Jonathan Barrow
bebae96f92
Removed HydratedPNIDDocument casting
2023-03-07 17:55:51 -05:00
Jonathan Barrow
4f134fed7d
Removed useless type check in getUserByUsername
2023-03-07 17:54:24 -05:00
Jonathan Barrow
7660b9134c
Removed unused exports
2023-03-06 21:07:35 -05:00
Jonathan Barrow
9fafca77fd
Typed literally everything and eslint is happy
2023-03-06 21:01:15 -05:00
Jonathan Barrow
e438253d3b
Moved types folder into src and changed alias root to @/
2023-03-04 20:25:01 -05:00
Jonathan Barrow
66f6dfc5df
Return DB connection from function
2023-03-04 12:41:53 -05:00
Jonathan Barrow
45a5fd9862
Add import aliases
2023-03-04 09:45:12 -05:00
Jonathan Barrow
d05a1eed91
Better typed Mongoose models
2023-03-03 20:59:05 -05:00
Jonathan Barrow
a75769a326
First steps to TypeScript
2023-03-03 12:38:36 -05:00