Create-T3-App tRPC 9
Can I create a project with tRPC 9 via CTA or do I have to use 10 beta? If so how?
24 Replies
You probably can but why
I see a lot of documentation / articles using tRPC 9. Is the beta stable?
Also I'm getting an error on the out of the box app CTA generates and wanted to try a stable version 🤷
tRPC failed on auth.getSecretMessage: TRPCError: UNAUTHORIZED
CTA generated with (A)ll packages includedUnknown User•2y ago
Message Not Public
Sign In & Join Server To View
we would strongly recommend using v10. it's more stable than v9
if you really want to, you can find the hash of the last version on the main branch that used v9, and do
npx ceate-t3-app@<hash>
but wouldn't recommend itok
regarding your error: you need to
npx prisma db push
and set up your auth
the auth demo cant work out of the box because it requires auth
or if you have that and are viewing the page without being logged in, then logging an error to the console in dev is intended behaviorI did that...
I created a Discord app and set Application ID to the DISCORD_CLIENT_ID and the Public Key it gave to DISCORD_CLIENT_SECRET both in .env
client id and client secret are these two things
Thx I found those as well
Right now my issue seems to be the redirect uri. I added
http://localhost:3000/api/oauth
and https://localhost:3000/api/auth/callback/discord
but I'm still seeing Invalid Oauth2 redirect_uri
when I try to log indelete oauth one
localhost isnt https either afaik
it should be this
That did it thanks
dont need the first one
Only need the
/discord
one