docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method UnlinkOpenIdConnectAsync

    UnlinkOpenIdConnectAsync(string)

    Unlinks the custom openID Connect id provider account from the current player account.

    Declaration
    Task UnlinkOpenIdConnectAsync(string idProviderName)
    Parameters
    Type Name Description
    string idProviderName

    the name of the id provider created. Note that it must start with "oidc-" and have between 1 and 20 characters

    Returns
    Type Description
    Task

    Task for the operation

    Exceptions
    Type Condition
    AuthenticationException

    The task fails with the exception when the task cannot complete successfully due to Authentication specific errors.

    • Throws with ErrorCode ClientInvalidUserState if the player has not authorized to perform this operation.
    • Throws with ErrorCode ClientUnlinkExternalIdNotFound if the player's PlayerInfo does not have a matching external id.
    RequestFailedException

    The task fails with the exception when the task cannot complete successfully.

    • Throws with ErrorCode InvalidToken if access token is invalid/expired. The access token is refreshed before it expires. This may happen if the refresh fails, or the app is unpaused with an expired access token while the refresh hasn't finished.
    • Throws with ErrorCode TransportError if the API call failed due to network error. Check Unity logs for more debugging information.
    • Throws with ErrorCode Unknown if the API call failed due to unexpected response from the server. Check Unity logs for more debugging information.
    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)