reptiloid
TTCTheo's Typesafe Cult
•Created by finalM on 2/1/2025 in #questions
Await auth()?
I'm not completely sure, but it may have become async after the Next.js 15 release
4 replies
TTCTheo's Typesafe Cult
•Created by Hinata on 2/1/2025 in #questions
T3 Chat
Kind of. On one of his streams, Theo showed that the paid tier subscription limit is 500 messages a month. If you use less than that you're fine.
27 replies
TTCTheo's Typesafe Cult
•Created by stephen on 1/15/2025 in #questions
limits of the free tier t3chat?
500 messages is a paid tier limit. Free tier limit is something around 30 messages per week.
5 replies
TTCTheo's Typesafe Cult
•Created by şiar_619 on 1/8/2025 in #questions
Credentials login error
Yes, you can either create an endpoint or a server action
14 replies
TTCTheo's Typesafe Cult
•Created by şiar_619 on 1/8/2025 in #questions
Credentials login error

14 replies
TTCTheo's Typesafe Cult
•Created by şiar_619 on 1/8/2025 in #questions
Credentials login error
It looks like something is wrong with the imports. Could you share the whole file?
14 replies
TTCTheo's Typesafe Cult
•Created by caleb on 1/6/2025 in #questions
Jose DataError: HMAC key data must not be empty
It seems like the
secret
variable value comes from the env.JWT_SECRET
. Maybe it's not set?7 replies
TTCTheo's Typesafe Cult
•Created by Beyond^sight on 12/30/2024 in #questions
-- Runing a TS files code from a Next app created with `npm` command --
You can't run
.ts
files using node
. You need to transpile it first using tsc
, but you are probably looking for something like tsx
. You can run it using npx
or install as a dev dependency and change the script to tsx ./src/lib/github.ts
12 replies
TTCTheo's Typesafe Cult
•Created by Harshit Raj on 12/30/2024 in #questions
How to restart a game
I don't know exactly how your
startGame
function is implemented, but you can probably use AbortController
to stop it's execution. Here is an example: https://codesandbox.io/p/sandbox/5sv4fr7 replies
TTCTheo's Typesafe Cult
•Created by nukely on 12/26/2024 in #questions
client - uploadthing architecture
uploadthing uses AWS under the hood, and these presigned urls come from AWS. I found this stackoverflow reply:
"A pre-signed URL expires at a set date/time. It is not possible to create a one-time use pre-signed URL.
It is also not possible to invalidate a pre-signed URL. However, the pre-signed URL uses permissions from the Access Key that is referenced by the pre-signed URL. If permissions are removed from the User linked to the Access Key, then the pre-signed URL will not work."
As for uploadthing, I think there should be a way to configure the expiry date
4 replies
TTCTheo's Typesafe Cult
•Created by nukely on 12/26/2024 in #questions
client - uploadthing architecture
Hi, I never used uploadthing myself, but from watching Theo's videos I learned something that could help. If you read this section of the docs, you can see that you can do client side uploads, when your server only generates pre-signed url, which the client uses to upload file directly to uploadthing. As for the logic before upload, I think you can do the stuff that you need in the
middleware
function, as it runs before upload. Hope it helps!4 replies