Disconnect Provider
Last updated
Last updated
Sometimes we or the player want to disconnect an identity provider from their account. In this how-to we'll explain how to disconnect a provider from a player's account in a safe manner.
Before we begin, ensure you have the following:
An active LootLocker session with multiple connected providers
To learn how to connect providers to a player's account, you can read our documentation on Connecting Providers to a Player
We first get a list of connected accounts to see which providers are connected to the player's account.
When disconnecting providers, we can end up in a situation where the player has no connected providers. Make sure to handle this case in your game, as the player will not be able to log in anymore if all the providers are disconnected.
Now we have a list of connected accounts, we can disconnect one of them.
In this how-to we've shown you how to disconnect an identity provider from a player. If you want to learn more, you can read about how to connect a provider or our general Unified Player Account documentation.