Ted (he/him)
Auth0 + fastify + tRPC
Hi,
I've inherited a tRPC React/fastify app and need to migrate the auth from supertokens to auth0. I'm running into an issue with the createContext function for the fastifyTRPCPlugin and would love to hear whether this is the right approach or if y'all have any suggestions.
Fastify server
the createContext function
My understanding is that fastify-auth0-verify plugin would annotate requests with a jwtVerify function (and VSCode thinks it exists). But I'm seeing the error
req.jwtVerify is not a function
Is the plugin registration order important? Or maybe a special case for websockets? Thanks for any help!3 replies