Vengeance
Vengeance
Explore posts from servers
TTCTheo's Typesafe Cult
Created by Vengeance on 4/22/2024 in #questions
create-t3-app next auth question
In the default auth settings for t3, I noticed id: token.sub in the callbacks making the id available on the user object. Is this sub something I can use as my unique user/account id in my db? What is sub?
export const authOptions: NextAuthOptions = {
callbacks: {
session: ({ session, token }) => ({
...session,
user: {
...session.user,
id: token.sub,
},
}),
},
export const authOptions: NextAuthOptions = {
callbacks: {
session: ({ session, token }) => ({
...session,
user: {
...session.user,
id: token.sub,
},
}),
},
9 replies
TTCTheo's Typesafe Cult
Created by Vengeance on 3/20/2024 in #questions
chrome inspector blue all of a sudden
No description
2 replies
TTCTheo's Typesafe Cult
Created by Vengeance on 11/24/2023 in #questions
Go-to Backend Server
I've been doing serverless so much that I don't actually know what the best backend server to host locally is anymore. For one reason or another I have to host a JS server at work for a webservice, does everyone still use express?
7 replies
TTCTheo's Typesafe Cult
Created by Vengeance on 10/19/2023 in #questions
React Native Native Select/Dropdown
No description
2 replies
TTCTheo's Typesafe Cult
Created by Vengeance on 9/28/2023 in #questions
Supabase Auth vs Clerk
Hi, what's the biggest difference between Clerk and Supabase Auth? Supabase is free for 50k MAU, Clerk is a whopping 10 times less, just curious as to why
2 replies
TTCTheo's Typesafe Cult
Created by Vengeance on 9/12/2023 in #questions
Modern Desktop App Framework
Hey guys, I haven't made a desktop app in a really long time, and I was curious what your guys opinions are. Is electron still good these days? Tauri looks interesting
2 replies
TTCTheo's Typesafe Cult
Created by Vengeance on 11/16/2022 in #questions
tRPC Procedure based cache
Is there a way to set the cache request length depending on the procedure instead of a global amount? I can't seem to figure it out.
10 replies
TTCTheo's Typesafe Cult
Created by Vengeance on 11/1/2022 in #questions
NextJS + tRPC API Logic Question
Are you guys putting your logic for your API routes in separate tRPC router and not making a file in the api directory? Or are you guys defining your API logic in files in the api directory and then also making a router file to define the typesafe inputs/outputs?
6 replies