docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class RestrictedTokenOptionsExtensions

    Extensions on RestrictedTokenOptions reserved for Unity-internal callers. These are not part of the supported public API; do not call from game code.

    Inheritance
    object
    RestrictedTokenOptionsExtensions
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.Services.Authentication.Internal
    Assembly: Unity.Services.Authentication.dll
    Syntax
    public static class RestrictedTokenOptionsExtensions

    Methods

    SetCountry(RestrictedTokenOptions, string)

    Sets the ISO-3166-1 alpha-2 country code to include in the issued token.

    Declaration
    public static void SetCountry(this RestrictedTokenOptions options, string country)
    Parameters
    Type Name Description
    RestrictedTokenOptions options

    The RestrictedTokenOptions to configure.

    string country

    The ISO-3166-1 alpha-2 country code to set.

    In This Article
    Back to top
    Copyright © 2026 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)