Nico
Nico
TTCTheo's Typesafe Cult
Created by Pavstermeister on 11/5/2023 in #questions
Configuring Clerk on the latest release of t3 with tRPC
@JacobMGEvans (Rustular CAO) no unfortunately clerk doesn't return a user in the auth() call. Clearing my cookies and cache and then logging in and console-logging the headers in the TRPC API route handler has some interesting findings that may lead to properly identifying the issue: 1) clerk cookies exist and seem like everything necessary for the auth function 2) clerk related headers conveying different message: [ 'x-clerk-auth-message', '' ], [ 'x-clerk-auth-reason', 'header-missing-non-browser' ], [ 'x-clerk-auth-status', 'signed-out' ], 'x-clerk-auth-message' => { name: 'x-clerk-auth-message', value: '' }, 'x-clerk-auth-reason' => { name: 'x-clerk-auth-reason', value: 'header-missing-non-browser' }, 'x-clerk-auth-status' => { name: 'x-clerk-auth-status', value: 'signed-out' }, Which is what i'm assuming is leading to the user object equalling null. I've been trying to find a solution but no luck yet. Any thoughts?
123 replies
TTCTheo's Typesafe Cult
Created by Pavstermeister on 11/5/2023 in #questions
Configuring Clerk on the latest release of t3 with tRPC
I can't get this to work with t3 after a few hours of trying. It works with a regular next-app with kirimase (kirimase's regular implementation of trpc is using nextcachelink vs batchstreamlink which may be the reason). I give up though. Would defer to @JacobMGEvans (Rustular CAO) who may be able to help. One thing I would mention @vibbin is that when using the app directory, clerk docs says to use auth() rather than getAuth().
123 replies
TTCTheo's Typesafe Cult
Created by Pavstermeister on 11/5/2023 in #questions
Configuring Clerk on the latest release of t3 with tRPC
nice!
123 replies
TTCTheo's Typesafe Cult
Created by Pavstermeister on 11/5/2023 in #questions
Configuring Clerk on the latest release of t3 with tRPC
I put out a demo doing this yesterday - https://x.com/nicoalbanese10/status/1721560882994377087?s=20
123 replies