Try to revoke tokens that are getting deleted

Best effort.

Fixes https://github.com/microsoft/vscode/issues/152055
This commit is contained in:
Tyler Leonhardt
2023-07-17 14:12:10 -07:00
parent c59a7a21f7
commit ac27273e48
7 changed files with 85 additions and 3 deletions

View File

@@ -0,0 +1,8 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
export function base64Encode(text: string): string {
return Buffer.from(text, 'binary').toString('base64');
}