About AutoAuth
AutoAuth is a Discord authorization bot. A member approves it once through Discord's own OAuth2 sign-in, and AutoAuth then keeps the tokens Discord issues so it can act on only what that member approved: being added to servers that run the bot, and, if allowed, receiving direct messages from the bot's owners.
How it works in detail
When you press an option on the Authorization page you are sent to discord.com, where Discord shows exactly which permissions are requested. After you approve, Discord returns a one-time code to this site, which exchanges it for an access token and a refresh token. AutoAuth stores your Discord user ID, your username and those two tokens, encrypted at rest (AES-256-GCM), together with which permissions you allowed and when. Your Discord password never reaches this site.
A server administrator who runs the bot in their server can then use /addusers or /adduser. AutoAuth uses each member's stored token to ask Discord's API to add that member to the server (Discord's “add guild member” request, which needs the guilds.join permission). Tokens are refreshed automatically when they near expiry. If Discord reports that a token was revoked, the authorization is marked inactive.
What each choice means
| Choice | Discord permissions | What it lets AutoAuth do |
|---|---|---|
| Server joins | identify, guilds.join, guilds | Add you to servers where the bot is installed when an administrator or the owners run the add commands, and let the owners remove you from servers they added you to. |
| Direct messages | identify, guilds, applications.commands | Installs the bot to your Discord account so its commands work anywhere, and lets the owners send you direct messages (with attachments) through the bot. Replies you send to the bot are shown to the owners. |
| Both | All of the above | Everything in both rows. |
The guilds permission lets Discord share which servers you are in during sign-in; AutoAuth does not store that list. AutoAuth never reads your messages, your friends list or your email address.
What the owners and administrators can and cannot do
- They can add you to servers, remove you from servers the bot can manage, send you direct messages if you allowed them, set an expiry on your authorization, and opt you out.
- They cannot see your Discord password or read your other messages. Tokens are never shown in the dashboard.
- Only people who have authorized AutoAuth appear in the owners' dashboard. Direct messages from anyone else are ignored.
Commands
| Command | Who | What it does |
|---|---|---|
/auth | Anyone | Sends you a link to the Authorization page, where you choose server joins, DMs or both. |
/optout | Anyone authorized | Opt out of server joins, DMs, or everything. Opting out of everything revokes your authorization and deletes your saved data and related log entries. |
/addusers | Server administrators | Adds every member who allowed server joins and is not already in the server. |
/adduser user_id | Server administrators | Adds one member who allowed server joins, by Discord user ID. |
Frequently asked questions
What am I allowing when I authorize?
You choose. Server joins lets admins add you to servers with AutoAuth. Direct messages lets the owners DM you through the bot. Both allows each. Details are shown before you continue.
Do you see my password, email or messages?
No. Sign-in happens on discord.com. We receive your username, your ID, and tokens for the permissions you approve (stored encrypted). Discord also tells us which servers you are in during sign-in, but we do not keep that list.
How do I stop?
Use the opt-out page, or run /optout in Discord and pick servers, DMs or everything. You can also remove AutoAuth under User Settings → Authorized Apps.
Does my authorization expire?
By default it stays active until you opt out. The owners can set an expiry for an authorization, after which it can no longer be used.
Can I be removed from a server?
Yes. The owners can remove members they added, using the bot, and server administrators have their own tools.
Why did a DM not arrive?
Discord can refuse a bot's message, for example if you have blocked the bot or Discord limits it. If you allowed direct messages and still receive nothing, check your Discord privacy settings.
Documentation
Setup instructions and source code are on GitHub.