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
barry
barry•2y ago
You probably can but why
currenthandle
currenthandle•2y ago
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 included
Unknown User
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
cje
cje•2y ago
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 it
currenthandle
currenthandle•2y ago
ok
cje
cje•2y ago
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 behavior
currenthandle
currenthandle•2y ago
I 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
cje
cje•2y ago
cje
cje•2y ago
client id and client secret are these two things
currenthandle
currenthandle•2y ago
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 in
barry
barry•2y ago
delete oauth one localhost isnt https either afaik
cje
cje•2y ago
it should be this
currenthandle
currenthandle•2y ago
That did it thanks
barry
barry•2y ago
dont need the first one
currenthandle
currenthandle•2y ago
Only need the /discord one
Want results from more Discord servers?
Add your server