Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not implemented: crypto.createSecretKey #3284

Closed
WeismannS opened this issue Mar 27, 2023 · 1 comment
Closed

Not implemented: crypto.createSecretKey #3284

WeismannS opened this issue Mar 27, 2023 · 1 comment
Labels
bug Something isn't working needs triage

Comments

@WeismannS
Copy link

Describe the bug
i'm using an api that uses jsonwebtoken module with unstable flag but I am seeing the following error:
Not implemented: crypto.createSecretKey
i traced it back to sign in file

const {createSecretKey} =  require("crypto")

Steps to Reproduce
as I said i'm using an module that uses jsonwebtoken

error: Uncaught Error: Not implemented: crypto.createSecretKey
    at notImplemented (ext:deno_node/_utils.ts:7:11)
    at createSecretKey (ext:deno_node/internal/crypto/keys.ts:129:5)
    at module.exports (file:///C:/Users/Badra/AppData/Local/deno/npm/registry.npmjs.org/jsonwebtoken/9.0.0/sign.js:113:30)
    at JWT.tokenGenerate (file:///C:/Users/Badra/AppData/Local/deno/npm/registry.npmjs.org/@vonage/jwt/1.1.2/dist/jwt.js:27:40)
    at tokenGenerate (file:///C:/Users/Badra/AppData/Local/deno/npm/registry.npmjs.org/@vonage/jwt/1.1.2/dist/index.js:8:21)
    at Auth.createBearerHeader (file:///C:/Users/Badra/AppData/Local/deno/npm/registry.npmjs.org/@vonage/auth/1.1.2/dist/auth.js:46:52)
    at Voice.addAuthenticationToRequest (file:///C:/Users/Badra/AppData/Local/deno/npm/registry.npmjs.org/@vonage/server-client/1.2.0/dist/client.js:69:52)
    at Voice.sendRequest (file:///C:/Users/Badra/AppData/Local/deno/npm/registry.npmjs.org/@vonage/server-client/1.2.0/dist/client.js:165:30)
    at Voice.sendPostRequest (file:///C:/Users/Badra/AppData/Local/deno/npm/registry.npmjs.org/@vonage/server-client/1.2.0/dist/client.js:148:27)
    at Voice.createOutboundCall (file:///C:/Users/Badra/AppData/Local/deno/npm/registry.npmjs.org/@vonage/voice/1.2.0/dist/voice.js:18:33)

Expected behavior

Environment

  • OS: Windows 10
  • deno version: 1.32.1
  • std version:
@WeismannS WeismannS added bug Something isn't working needs triage labels Mar 27, 2023
@kt3k
Copy link
Member

kt3k commented Mar 27, 2023

Fixed in denoland/deno#18413. This will be available in the next release.

@kt3k kt3k closed this as completed Mar 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs triage
Projects
None yet
Development

No branches or pull requests

2 participants