Running into URL constructor issues when combined with Auth0's NextJS package
Hey all;
I'm currently running into some really annoying issues when trying to insert a user into my database once they have been authenticated by Auth0.
I'm attempting to do this in the
beforeSessionSaved
handler within the Auth0Client
. I've opened a ticket for them to take a look at but I wondered if there's anything I can do on the Drizzle side?
The error I'm seeing is "TypeError: URL is not a constructor" and this only happens when using Drizzle from within the callback.
Here's my example code:
Is there another method how I can connect to a MySQL database that doesn't rely on the URL global object?
Thanks in advance0 Replies