docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class RestrictedTokenOptions

    Options for GenerateRestrictedTokenAsync(RestrictedTokenOptions).

    Inheritance
    object
    RestrictedTokenOptions
    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
    Assembly: Unity.Services.Authentication.dll
    Syntax
    public class RestrictedTokenOptions

    Properties

    Services

    Restricts which services can accept the issued token. Refer to the documentation of the service the token is intended for to determine the value to use.

    Declaration
    public List<string> Services { get; set; }
    Property Value
    Type Description
    List<string>

    SingleUse

    When true, the issued token can only be used once.

    Declaration
    public bool SingleUse { get; set; }
    Property Value
    Type Description
    bool

    TtlSeconds

    Requested lifetime of the issued token in seconds. Leave null to use the server default.

    Declaration
    public long? TtlSeconds { get; set; }
    Property Value
    Type Description
    long?

    Extension Methods

    RestrictedTokenOptionsExtensions.SetCountry(RestrictedTokenOptions, string)
    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)