mirror of
https://github.com/smogon/pokemon-showdown-loginserver.git
synced 2026-04-25 08:04:15 -05:00
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. |
||
|---|---|---|
| .github/workflows | ||
| config | ||
| src | ||
| .editorconfig | ||
| .eslintrc.json | ||
| .gitignore | ||
| .mocharc.json | ||
| OAUTH.md | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
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)