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

Using Nestjs #89

Open
kamalkech opened this issue Apr 11, 2021 · 3 comments
Open

Using Nestjs #89

kamalkech opened this issue Apr 11, 2021 · 3 comments

Comments

@kamalkech
Copy link

import * as jwkToPem from 'jwk-to-pem';
const pem = jwkToPem(jwk);

get error : jwkToPem is not a function
why ?

@kamalkech
Copy link
Author

i am tired to look for a solution that realy spent a lot of time with any result

@schuerg
Copy link

schuerg commented Jun 1, 2021

I am using exactly the same code in a Nest.js project.
Maybe you need npm install @types/jwk-to-pem?

@pastean
Copy link

pastean commented Sep 9, 2023

import it like this
import * as jwkToPem from 'jwk-to-pem';

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants