rbatsenko
rbatsenko
TTCTheo's Typesafe Cult
Created by rbatsenko on 4/12/2023 in #questions
Environment variables validation not working with Jest (env.mjs)
Yeah all this esm stuff is super annoying in JS...
4 replies
TTCTheo's Typesafe Cult
Created by rbatsenko on 4/12/2023 in #questions
Environment variables validation not working with Jest (env.mjs)
Solved it by migrating my tests to Vitest lol 😀 🤘
4 replies
TTCTheo's Typesafe Cult
Created by Dale on 3/24/2023 in #questions
t3 video tutorial typescript error
But forgot to mention this postinstall or smth
18 replies
TTCTheo's Typesafe Cult
Created by Dale on 3/24/2023 in #questions
t3 video tutorial typescript error
Maybe that's why he told so
18 replies
TTCTheo's Typesafe Cult
Created by Dale on 3/24/2023 in #questions
t3 video tutorial typescript error
@Dale if you have postinstall script in package.json, you can npm install and then it will automatically run what you put in that script 🙂 I do it in my project.
"scripts": {
"postinstall": "npx prisma generate"
}
"scripts": {
"postinstall": "npx prisma generate"
}
18 replies
TTCTheo's Typesafe Cult
Created by pedromcr on 3/21/2023 in #questions
How to avoid page load when verifying email with NextAuth
14 replies
TTCTheo's Typesafe Cult
Created by pedromcr on 3/21/2023 in #questions
How to avoid page load when verifying email with NextAuth
You can make it IIFE or disable the rule
14 replies
TTCTheo's Typesafe Cult
Created by pedromcr on 3/21/2023 in #questions
How to avoid page load when verifying email with NextAuth
Idk what is this promise-returning error, I don't have it 😄
14 replies
TTCTheo's Typesafe Cult
Created by pedromcr on 3/21/2023 in #questions
How to avoid page load when verifying email with NextAuth
You don't need to assign the response I think, just this should work:
await signIn("email", {
redirect: false,
email: "example@test.com",
});
await signIn("email", {
redirect: false,
email: "example@test.com",
});
14 replies
TTCTheo's Typesafe Cult
Created by pedromcr on 3/21/2023 in #questions
How to avoid page load when verifying email with NextAuth
<button
className={styles.buttonPrimary}
onClick={async (e) => {
e.preventDefault();

const response = await signIn("email", {
redirect: false,
email: "example@test.com",
});

console.log(response);
}}
>
Sign in
</button>
<button
className={styles.buttonPrimary}
onClick={async (e) => {
e.preventDefault();

const response = await signIn("email", {
redirect: false,
email: "example@test.com",
});

console.log(response);
}}
>
Sign in
</button>
14 replies
TTCTheo's Typesafe Cult
Created by pedromcr on 3/21/2023 in #questions
How to avoid page load when verifying email with NextAuth
14 replies
TTCTheo's Typesafe Cult
Created by pedromcr on 3/21/2023 in #questions
How to avoid page load when verifying email with NextAuth
It works normally for me 🙂 Did you setup the DB adapter?
14 replies
TTCTheo's Typesafe Cult
Created by JJ Rise on 1/27/2023 in #questions
Relations between Clerk Users with Prisma db
Drive safely 🙂
13 replies
TTCTheo's Typesafe Cult
Created by JJ Rise on 1/27/2023 in #questions
Relations between Clerk Users with Prisma db
Totally, thanks a lot!
13 replies
TTCTheo's Typesafe Cult
Created by JJ Rise on 1/27/2023 in #questions
Relations between Clerk Users with Prisma db
Thanks for answering anyway! Have a great day
13 replies
TTCTheo's Typesafe Cult
Created by JJ Rise on 1/27/2023 in #questions
Relations between Clerk Users with Prisma db
So I guess it's worth it 😁 I'm wondering because I'm rewriting an app where there is already a DB with existing users and the question is if I'll be able to easily associate them with Clerk now, and how do I approach this (I saw there is an option to import existing users to Clerk DB somehow).
13 replies
TTCTheo's Typesafe Cult
Created by JJ Rise on 1/27/2023 in #questions
Relations between Clerk Users with Prisma db
@jjrise were you able to start using it? I'm starting a new project on T3 now and wondering if I should go straight with Clerk or rather with NextAuth and all auth data in my db (on PlanetScale) 🙂 Appreciate!
13 replies