Shampurrrs
Shampurrrs
TTCTheo's Typesafe Cult
Created by Shampurrrs on 9/23/2023 in #questions
CreateTRPCNext<AppRouter> showing typescript error.
4 replies
TTCTheo's Typesafe Cult
Created by Shampurrrs on 10/19/2022 in #questions
How to handle cancelled login, when using nextAuth OAuth?
OK! I've managed to get rid of that callback page, It now redirects to the login page on OAuth cancellation. I do however have this URL when redirected
http://localhost:3000/logincallbackUrl=http%3A%2F%2Flocalhost%3A3000%2F&error=Callback
http://localhost:3000/logincallbackUrl=http%3A%2F%2Flocalhost%3A3000%2F&error=Callback
I don't think it's that big of a deal though. Thanks for your help!! Really appreciate it. @Piotrek
12 replies
TTCTheo's Typesafe Cult
Created by Shampurrrs on 10/19/2022 in #questions
How to handle cancelled login, when using nextAuth OAuth?
Sorry! I missed you. I live in NZ so our timezones might be a bit wack.
12 replies
TTCTheo's Typesafe Cult
Created by Shampurrrs on 10/19/2022 in #questions
How to handle cancelled login, when using nextAuth OAuth?
Hi @Piotrek Could I have more context. sorry if i'm being annoying. I have a button, that has an onClick eventHandler attached to it a button
onClick={() =>signIn("discord", { callbackUrl:"http://localhost:3000/"})}
onClick={() =>signIn("discord", { callbackUrl:"http://localhost:3000/"})}
would I add the error param here?
12 replies
TTCTheo's Typesafe Cult
Created by Shampurrrs on 10/19/2022 in #questions
How to handle cancelled login, when using nextAuth OAuth?
Hi @Piotrek Thanks for reply. Would I do this in the [...nextauth] file, in the callback object?
12 replies