Cannot use jose on Angular application #482
Unanswered
YounesJonas
asked this question in
Q&A
Replies: 1 comment
-
Would you mind creating a minimal reproduction repository and steps to reproduce your issue? For anyone without prior knowledge of angular, a repo that can be simply cloned, npm installed and ran is needed to help you. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi All,
I've added jose (4.11.1) as a dependency to my angular project, (Angular CLI 1.4.7, Node 14.17.6, typescript 2.5.3)
getting the following error when compiling : (ng serve)
`
// import
const jose = require('jose');
export class AuthService {
public decryptToken(){
const decryptedJWE = jose.jwtDecrypt(jwe,secret);
}
}
`
I got this error:
Has anyone encountered it before?
Best regards,
Thanks
Beta Was this translation helpful? Give feedback.
All reactions