kingfisher95
kingfisher95
TTCTheo's Typesafe Cult
Created by Hampterultimate on 4/6/2023 in #questions
NextAuth CredentialProvider with T3 default Auth Prisma models limitation question.
I might try that later though it looks like the same setup as the code earlier in the thread, which didn't work for me shrug
30 replies
TTCTheo's Typesafe Cult
Created by Hampterultimate on 4/6/2023 in #questions
NextAuth CredentialProvider with T3 default Auth Prisma models limitation question.
I'd say it would be nice to hear his thoughts on it but this thread isn't the place
30 replies
TTCTheo's Typesafe Cult
Created by Hampterultimate on 4/6/2023 in #questions
NextAuth CredentialProvider with T3 default Auth Prisma models limitation question.
Has Theo even mentioned credential logins at all ever?
30 replies
TTCTheo's Typesafe Cult
Created by Hampterultimate on 4/6/2023 in #questions
NextAuth CredentialProvider with T3 default Auth Prisma models limitation question.
From my limited use, I'd argue against swapping for now, there's stuff I'd like Lucia to change before I'd say it can be a good alternative
30 replies
TTCTheo's Typesafe Cult
Created by Hampterultimate on 4/6/2023 in #questions
NextAuth CredentialProvider with T3 default Auth Prisma models limitation question.
It does support oauth too so if you still need discord or GitHub or whatever other service as a login
30 replies
TTCTheo's Typesafe Cult
Created by Hampterultimate on 4/6/2023 in #questions
NextAuth CredentialProvider with T3 default Auth Prisma models limitation question.
If by token you mean a cookie then yeah
30 replies
TTCTheo's Typesafe Cult
Created by Hampterultimate on 4/6/2023 in #questions
NextAuth CredentialProvider with T3 default Auth Prisma models limitation question.
There's a password somewhere along the line, would've been easier if it was done locally
30 replies
TTCTheo's Typesafe Cult
Created by Hampterultimate on 4/6/2023 in #questions
NextAuth CredentialProvider with T3 default Auth Prisma models limitation question.
Yeah that's what I hate but oh well..
30 replies
TTCTheo's Typesafe Cult
Created by Hampterultimate on 4/6/2023 in #questions
NextAuth CredentialProvider with T3 default Auth Prisma models limitation question.
True, just didn't think I'd need to switch to a different auth library just to get what I want without the headache
30 replies
TTCTheo's Typesafe Cult
Created by Hampterultimate on 4/6/2023 in #questions
NextAuth CredentialProvider with T3 default Auth Prisma models limitation question.
Yes I did try that code. I'm just going to switch to Lucia Auth instead, more boilerplate but at least I can have basic username&password without jumping through several loops and being told its not a good idea to use creds even though I don't see the harm in them..
30 replies
TTCTheo's Typesafe Cult
Created by Hampterultimate on 4/6/2023 in #questions
NextAuth CredentialProvider with T3 default Auth Prisma models limitation question.
Flow I've noticed, Authorize -> JWT -> JWT (undefined user) -> Session (undefined user) -> Error -> JWT (undefined user) -> Session (undefined user) -> Error
30 replies
TTCTheo's Typesafe Cult
Created by Hampterultimate on 4/6/2023 in #questions
NextAuth CredentialProvider with T3 default Auth Prisma models limitation question.
After some debugging the JWT and Session handler doesn't always get the user passed to it, and when it doesn't the Session handler encounters an error trying to read id from user, since user doesn't always get passed, it's sometimes undefined causing the error, the bigger problem is that this is a 100% fail rate in my setup. Those handlers DO get the user, but only when it doesn't matter. They are both called twice during sign in, the first time they get the user, everything is hunky dory, the second time they don't, then error, then no auth/user on the frontend
30 replies
TTCTheo's Typesafe Cult
Created by Hampterultimate on 4/6/2023 in #questions
NextAuth CredentialProvider with T3 default Auth Prisma models limitation question.
Yeah this code looked familiar, I've tried this and useSession always returns null so I can't do anything with it
30 replies
TTCTheo's Typesafe Cult
Created by Hampterultimate on 4/6/2023 in #questions
NextAuth CredentialProvider with T3 default Auth Prisma models limitation question.
Did you get anywhere with this? I get that using the Credentials provider is a no support option but I really just want a basic username and password login, I don't get why it's so hard to do..
30 replies
TTCTheo's Typesafe Cult
Created by Çağlar on 3/21/2023 in #questions
How to store session in DB using credentials provider?
Doesn't really answer the question
3 replies
TTCTheo's Typesafe Cult
Created by kingfisher95 on 2/12/2023 in #questions
(Solved) Fresh T3 App Complaining About Session
vscode 2 when
26 replies
TTCTheo's Typesafe Cult
Created by kingfisher95 on 2/12/2023 in #questions
(Solved) Fresh T3 App Complaining About Session
Seems as tho just restarting the TS server is not always enough, restarting vscode fixed it from what I can tell, not sure what was causing that since all that matters is the ts server no?
26 replies
TTCTheo's Typesafe Cult
Created by kingfisher95 on 2/12/2023 in #questions
(Solved) Fresh T3 App Complaining About Session
I did TS, not vscode, Ill do that rq
26 replies
TTCTheo's Typesafe Cult
Created by kingfisher95 on 2/12/2023 in #questions
(Solved) Fresh T3 App Complaining About Session
Yep
26 replies
TTCTheo's Typesafe Cult
Created by kingfisher95 on 2/12/2023 in #questions
(Solved) Fresh T3 App Complaining About Session
Yes, NextAuth, Prisma and tRPC
26 replies