Skip to content

Commit f01fa50

Browse files
authored
Merge pull request #295 from cnblogs/work-with-vscode1.90
fix: remove unused code to work with vscode 1.90
2 parents 883970e + 6386642 commit f01fa50

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/service/code-challenge.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,6 @@ import base64url from 'base64url'
22
import crypto from 'crypto'
33
import { RsRand } from '@/wasm'
44

5-
// See in: https://docs.rs/getrandom/latest/getrandom/#nodejs-es-module-support
6-
/* eslint-disable */
7-
import { webcrypto } from 'node:crypto'
8-
// @ts-ignore
9-
globalThis.crypto = webcrypto
10-
/* eslint-disable */
11-
125
export const genVerifyChallengePair = () => {
136
const verifyCode = RsRand.string(128)
147
const base64Digest = crypto.createHash('sha256').update(verifyCode).digest('base64')

0 commit comments

Comments
 (0)