First time I setup a project in V0, Google login worked instantly. But as I couldn't get OAuth to work in the Preview, I disabled the login part while I built my app(NextJS, Supabase).
But now that I actually need the login, it's impossible to get to work again. I've battled with it for multiple days - and nothing seems to fix it. I wondered whether it was an error related to my environment setup, so I created a brand new V0 account and setup a new project with just a login page. To my surprise, I get the same error in this new project on the new account.
What can I possibly do to make the Google login work?
I get these 2 errors in the console:
**1-993471bbbb25fde6.js:1 Error: [unenv] crypto.createHash is not implemented yet!** at n (esm.sh/node/crypto.mjs:1:22) (shortended for readablitity)
**1411-993471bbbb25fde6.js:1 [next-auth][error][CLIENT_FETCH_ERROR]** https://next-auth.js.org/errors#client_fetch_error Failed to execute 'json' on 'Response': Unexpected token 'I', "Internal s"... is not valid JSON {error: {…}, url: '/api/auth/providers', message: `Failed to execute 'json' on 'Response': Unexpected token 'I', "Internal s"... is not valid JSON`}window.console.error @ 1411-993471bbbb25fde6.js:1console.<computed> @ VM691 2309-3b500fa079838e7a.js:1 (shortended for readablitity)1411-993471bbbb25fde6.js:1 TypeError: Cannot read properties of undefined (reading 'searchParams') (shortended for readablitity)TypeError: Cannot read properties of undefined (reading 'searchParams') at et (index.js:55:48) (shortended for readablitity)