<aside> ℹ️ Heads up! This part of the documentation is more technical and best suited for developers aiming to integrate their product with Bind.

</aside>

See a working example of an external authentication route here:

bind-id-auth-example/src/pages/api/bind-auth.ts at main · BetaExploration/bind-id-auth-example

Introduction

This integration works from inside your Discord community and can be added by running the /create-external-verification command once you configure Bind for your workspace.

Bind Auth route

The Bind Auth route authenticates your user with Bind and then passes the user data to our platform.

The Bind Auth route should accept 1 query parameter to identify the request securely:

After receiving the token, it should then fetch the userId of the currently signed in user and generate an idHash . See How to generate an idHash for more details.