Go to file
Async10 df7194b914
Fix code sample for getting a token (#18)
The code sample had multiple problems. The most important one was that
it did not run because the call to `checkIfUpdated` was incorrect and
the code didn't take into account that a DOMException is thrown when
trying to read `popup.location.href` before the redirect happened. Apart from
that I added url encoding of the query parameters and some simple sanity
checks on the received `token` and `assertion` values in order to make
the sample a bit more robust.
2023-09-11 09:14:31 -05:00
.github/workflows Run tsc in tests 2021-10-11 20:53:16 -05:00
config Support rebuilding the client through an action (#15) 2023-04-13 20:03:19 -07:00
src OAuth: Ensure the getassertion action accepts a challstr properly 2023-08-21 14:02:24 -05:00
.editorconfig Readd editorconfig, set up tests 2022-12-29 21:22:53 -06:00
.eslintrc.json Powerful SQL template strings (#11) 2023-03-08 22:53:05 -08:00
.gitignore Ignore .DS_STore 2022-12-27 20:33:17 -06:00
.mocharc.json Readd editorconfig, set up tests 2022-12-29 21:22:53 -06:00
OAUTH.md Fix code sample for getting a token (#18) 2023-09-11 09:14:31 -05:00
package-lock.json Add pg to package.json 2023-03-27 09:38:22 -05:00
package.json Add pg to package.json 2023-03-27 09:38:22 -05:00
README.md Bumping commit 2022-12-29 20:03:37 -06:00
tsconfig.json Use esnext 2023-01-03 19:30:37 -06:00

Pokemon Showdown Loginserver.

This is the PS loginserver. Build it with npm run build, and run it with npm run start.

You can access it via either /action.php, or /api/[desired action].

See src/actions.ts for a list of the actions. (Actions can be added by adding a function to that file)