#crypto

1 messages · Page 1 of 1 (latest)

shy fjord
#

Hydrogen runs on Cloudflare Workers and Cloudflare doesn't use Node, so crypto package is not available, that said remix-auth itself doesn't use crypto, some strategies may do it, or your code could be doing it

bright sentinel
#

I see, I'm using remix-auth-socials as well to be mentioned, the error occurs when added the following route: // routes/login.tsx

import { Form } from "@remix-run/react";
// OR
// import { Form } from "@remix-run/node";
export default function Login() {
return (
<Form action="/auth/github" method="post">
<button>Login with GitHub</button>
</Form>
);
}

shy fjord
#

are your importing from @remix-run/node?

bright sentinel
#

both give the same error

shy fjord
#

I'm not expert on Hydrogen since I never used it but you should probably import from another package because you're not using Node

#

it's possible remix-auth-socials is causing an issue too

bright sentinel
#

ok I'll have another look, thanks for your time

#

which is fine and can npm run dev, just when adding that simple route it fails