diff options
| author | Andrew Lee <andrew@alee14.me> | 2025-01-23 15:52:49 -0500 |
|---|---|---|
| committer | Andrew Lee <andrew@alee14.me> | 2025-01-23 15:52:49 -0500 |
| commit | a1b29429b53f0c97a014403534312596da0f4cc1 (patch) | |
| tree | 8d99d064fa65ddb0200cb763a4c7314f8730f46f /README.md | |
| download | bnbaim-auth-a1b29429b53f0c97a014403534312596da0f4cc1.tar.gz bnbaim-auth-a1b29429b53f0c97a014403534312596da0f4cc1.tar.bz2 bnbaim-auth-a1b29429b53f0c97a014403534312596da0f4cc1.zip | |
Initial commit
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..f60e483 --- /dev/null +++ b/README.md @@ -0,0 +1,19 @@ +# bnbaim-discord-auth +Web authentication for AIM (registering accounts, changing passwords) using Discord authentication. + +To install dependencies: + +```bash +bun install +``` + +To run: + +```bash +bun run index.js +``` + +# How this works? +The website requires to log into Discord, and it checks if the user is on a specific server (as defined on the .env file). Then it checks if the user is registered on a local database, if not then it prompts the user to register a FreeSO account. After, once the user registers the account, it makes a POST request to `/userapi/registration`. Otherwise, if the user is registered, then it redirects the user to the dashboard which has options to change the password and download the client. + +This project was created using `bun init` in bun v1.1.38. [Bun](https://bun.sh) is a fast all-in-one JavaScript runtime. |
