Skip to content

Discord

This how-to walks you through configuring Sign in with Discord and starting a Discord session from your game.

Prerequisites

Configuration

Configure your integration in the platform settings.

Discord platform settings

Client ID & Client Secret: retrieve these from the Discord Developer Portal. Create an application first if you don't already have one.

Start Session

Acquire a Discord Access Token (or the Discord Refresh Token also returned from the access token exchange), then use it to start a session. The response includes a refresh token, which lets you refresh the session without repeating the full sign-in flow.

Coming soon — this sample hasn't been written yet.

Refresh Session

Refresh the session instead of having the player go through the full sign-in flow every time. The request returns a 401 (Unauthorized) if the refresh token has expired, in which case start a new session instead.

Coming soon — this sample hasn't been written yet.

Conclusion

You've started using LootLocker in your game with Sign in with Discord. Next, review LootLocker's full feature set to decide which other features to implement.