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

Crypto module not available in unsecured contexts #1166

Open
1 task
moshie opened this issue Dec 23, 2024 · 1 comment
Open
1 task

Crypto module not available in unsecured contexts #1166

moshie opened this issue Dec 23, 2024 · 1 comment

Comments

@moshie
Copy link

moshie commented Dec 23, 2024

What version of million are you using?

1.0.14

Are you using an SSR adapter? If so, which one?

NextJS

What package manager are you using?

pnpm

What operating system are you using?

Mac

What browser are you using?

Arc, Chromium

Describe the Bug

When booting my application in localhost I have an error in the console:

TypeError: crypto.randomUUID is not a function

you cannot use crypto.randomUUID in insecure contexts I recommend using the uuid package instead.

What's the expected result?

Million uses uuid instead of the web crypto module.

Link to Minimal Reproducible Example

...

Participation

  • I am willing to submit a pull request for this issue.
Copy link

Thanks for opening this issue! A maintainer will review it soon.

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

1 participant