Clerk auth 'authMiddleware' vs 'withClerkMiddleware' and setting cookies
(https://clerk.com/docs/nextjs/middleware)
I'm trying to set two cookies inside authMiddleware (afterAuth) and it works for setting the first cookie, but any subsequent cookies aren't set at all.
If i try to do it using the older 'withClerkMiddleware', it works tho.
i'm doing it simply like:
is there a way to set two cookies using authMiddeware?
i'm fine with using
withClerkMiddleware
but there's a deprecation warning
What exactly happens when the method is deprecated? Will it stop working?0 Replies