Skip to content

Commit

Permalink
Merge pull request #295 from cnblogs/work-with-vscode1.90
Browse files Browse the repository at this point in the history
fix: remove unused code to work with vscode 1.90
  • Loading branch information
cnblogs-dudu authored Jun 9, 2024
2 parents 883970e + 6386642 commit f01fa50
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/service/code-challenge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,6 @@ import base64url from 'base64url'
import crypto from 'crypto'
import { RsRand } from '@/wasm'

// See in: https://docs.rs/getrandom/latest/getrandom/#nodejs-es-module-support
/* eslint-disable */
import { webcrypto } from 'node:crypto'
// @ts-ignore
globalThis.crypto = webcrypto
/* eslint-disable */

export const genVerifyChallengePair = () => {
const verifyCode = RsRand.string(128)
const base64Digest = crypto.createHash('sha256').update(verifyCode).digest('base64')
Expand Down

0 comments on commit f01fa50

Please sign in to comment.