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

5.6.0 normalizePrivateKey #690

Closed
2 tasks done
dezerb opened this issue Jun 27, 2024 · 3 comments · May be fixed by Zwiqler94/jz-portfolio#547, tarun2001jawla/MERN-BOOK-STORE#2 or DTS-STN/secure-client-hub#720
Closed
2 tasks done

Comments

@dezerb
Copy link

dezerb commented Jun 27, 2024

What happened?

During import of auth.js there is exception while loading jose (version 5.5.0 is not affected by this)

│ ../../node_modules/jose/dist/node/esm/lib/encrypt_key_management.js
│ Attempted import error: 'normalizePublicKey' is not exported from '../runtime/normalize_key.js' (imported as 'normalize').
│ 
│ Import trace for requested module:
│ ../../node_modules/jose/dist/node/esm/lib/encrypt_key_management.js
│ ../../node_modules/jose/dist/node/esm/jwe/general/encrypt.js
│ ../../node_modules/jose/dist/node/esm/index.js
│ ../../node_modules/@auth/core/jwt.js
│ ../../node_modules/@auth/core/lib/init.js
│ ../../node_modules/@auth/core/lib/index.js
│ ../../node_modules/@auth/core/index.js
│ ../../node_modules/next-auth/index.js

Version

5.6.0

Runtime

Browser

Runtime Details

macos, node 20, next14

Code to reproduce

import { auth } from '@/auth';

Required

  • I have searched the issues tracker and discussions for similar topics and couldn't find anything related.
  • I agree to follow this project's Code of Conduct
@dezerb dezerb added the triage label Jun 27, 2024
@panva
Copy link
Owner

panva commented Jun 27, 2024

sigh. Optimized too soon. Will fix shortly.

@panva panva closed this as completed in 723a042 Jun 27, 2024
@panva
Copy link
Owner

panva commented Jun 27, 2024

https://github.com/panva/jose/releases/tag/v5.6.1

Run npm upgrade jose to get the latest release.

@dezerb
Copy link
Author

dezerb commented Jun 27, 2024

@panva thanks for fast fix, tested now it works like a charm 🎉

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants