mirror of
https://github.com/microsoft/vscode.git
synced 2026-03-01 06:06:04 +00:00
Try to revoke tokens that are getting deleted
Best effort. Fixes https://github.com/microsoft/vscode/issues/152055
This commit is contained in:
8
extensions/github-authentication/src/node/buffer.ts
Normal file
8
extensions/github-authentication/src/node/buffer.ts
Normal 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');
|
||||
}
|
||||
Reference in New Issue
Block a user