docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method AuthorizeOAuthAsync

    AuthorizeOAuthAsync(CancellationToken)

    Call to preauthorize when using OAuth authorization. This will cause a browser to open a Google authorization page after which the token will be stored in IDataStore so that this does not need to be done each time. If this is not called then the first time Service is called it will be performed then.

    Declaration
    public Task<UserCredential> AuthorizeOAuthAsync(CancellationToken cancellationToken)
    Parameters
    Type Name Description
    CancellationToken cancellationToken

    Token that can be used to cancel the task prematurely.

    Returns
    Type Description
    Task<UserCredential>

    The authorization Task that can be monitored.

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