AcManager.LargeFilesSharing.GoogleDrive.GoogleDriveUploader.GetAutenficationCode C# (CSharp) Method

GetAutenficationCode() private static method

private static GetAutenficationCode ( string clientId, CancellationToken cancellation ) : Task
clientId string
cancellation System.Threading.CancellationToken
return Task
        private static Task<string> GetAutenficationCode(string clientId, CancellationToken cancellation) {
            return PromptCodeFromBrowser.Show($"https://accounts.google.com/o/oauth2/v2/auth?scope={Uri.EscapeDataString(Scopes.JoinToString(' '))}&" +
                    $"redirect_uri={RedirectUrl}&response_type=code&" +
                    $"client_id={clientId}", new Regex(@"Success code=(\S+)", RegexOptions.Compiled),
                    ToolsStrings.Uploader_EnterGoogleDriveAuthenticationCode, ToolsStrings.Uploader_GoogleDrive, cancellation: cancellation);
        }