Skip to content

Conversation

@spenhand
Copy link
Contributor

@spenhand spenhand commented Oct 6, 2025

Added a dedicated method for the bot token flow to make unmerging possible even if you've lost the discord auth token. updating the docs to describe it.

@spenhand spenhand force-pushed the spenhand/bot-unmerge-docs branch 2 times, most recently from 8858ef2 to da70cb5 Compare October 6, 2025 19:57
@spenhand spenhand marked this pull request as ready for review October 6, 2025 20:28
@spenhand spenhand requested a review from a team as a code owner October 6, 2025 20:28
@spenhand spenhand requested review from anthonydiscord and removed request for a team October 6, 2025 20:28
@markmandel markmandel self-requested a review October 6, 2025 20:40
@@ -498,6 +498,28 @@ def unmerge_provisional_account(external_auth_token):
If you have a server backend, you'll want to use the server-to-server unmerge endpoint rather than the SDK helper method to maintain better security and control over the unmerge process.
:::

#### Unmerging with Bot Token Endpoint

If you're using the [Bot Token Endpoint](/docs/discord-social-sdk/development-guides/using-provisional-accounts#server-authentication-with-bot-token-endpoint) for authentication, you can unmerge accounts without an external auth token.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want to mention that you can use this to unmerge even if you've lost the discord auth token?

Something like:

:::info
This endpoint can also be useful in cases where the Discord Auth token has been lost to to error or data loss, and an unmerge operation is required to migrate to a provisional account before re-linking a Discord account.
:::

WDYT?

spenhand and others added 2 commits November 7, 2025 14:00
Document the new /provisional-accounts/unmerge/bot endpoint that allows unmerging provisional accounts using just the bot token and external_user_id, without requiring an external auth token. This ensures identities can always be removed even if the external auth token is no longer accessible.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Add "Tip" for being able to recover an account that's lost its auth
token due to data loss or error.
@markmandel markmandel force-pushed the spenhand/bot-unmerge-docs branch from da70cb5 to cf261fd Compare November 7, 2025 22:09
@markmandel
Copy link
Contributor

While we're still waiting on previews to work:

image

@markmandel markmandel merged commit f1c0962 into main Nov 7, 2025
5 checks passed
@markmandel markmandel deleted the spenhand/bot-unmerge-docs branch November 7, 2025 22:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants