Aditya Kirad
Aditya Kirad
Explore posts from servers
TTCTheo's Typesafe Cult
Created by Aditya Kirad on 1/11/2024 in #questions
setuping prettier and eslint with new next app
also I don't have the prettier extension installed it works with only eslint extension installed
3 replies
TTCTheo's Typesafe Cult
Created by Aditya Kirad on 12/23/2023 in #questions
Loading UI not showing
@lanc3 can you help me with one more thing so with tanstack query when fetch some data and when window goes out of focus and then comes back to focus it revalidate the data how can we get the same behaviour here
14 replies
TTCTheo's Typesafe Cult
Created by Aditya Kirad on 12/23/2023 in #questions
Loading UI not showing
@lanc3 thank you so much it worked
14 replies
TTCTheo's Typesafe Cult
Created by Aditya Kirad on 12/23/2023 in #questions
Loading UI not showing
thanks I will try it if it works I will tell you but fetching the data in the page itself why doesn't work
14 replies
TTCTheo's Typesafe Cult
Created by Aditya Kirad on 12/23/2023 in #questions
Loading UI not showing
I understood what I have to do fetch the data in the component not in the page itself right
14 replies
TTCTheo's Typesafe Cult
Created by Aditya Kirad on 12/23/2023 in #questions
Loading UI not showing
so it would not work If I will pass defaualt exported component right
14 replies
TTCTheo's Typesafe Cult
Created by Aditya Kirad on 12/23/2023 in #questions
Loading UI not showing
you there @lanc3
14 replies
TTCTheo's Typesafe Cult
Created by Aditya Kirad on 12/23/2023 in #questions
Loading UI not showing
do I have to pass named component instead
14 replies
TTCTheo's Typesafe Cult
Created by Aditya Kirad on 12/23/2023 in #questions
Loading UI not showing
So I can't dynamically create component like I'm doing in the code Well I tried passing a default single component
14 replies
TTCTheo's Typesafe Cult
Created by Aditya Kirad on 12/21/2023 in #questions
need help with customizing error page if auth is failed
Then what
12 replies
TTCTheo's Typesafe Cult
Created by Aditya Kirad on 12/21/2023 in #questions
need help with customizing error page if auth is failed
[next-auth][error][OAUTH_CALLBACK_ERROR]
https://next-auth.js.org/errors#oauth_callback_error access_denied {
message: 'access_denied',
stack: 'Error: access_denied\n' +
' at oAuthCallback (D:\\React\\Dragoguard-Dashboard\\.next\\server\\chunks\\43599_next-auth_34f8d1._.js:2730:23)\n' +
' at Object.callback (D:\\React\\Dragoguard-Dashboard\\.next\\server\\chunks\\43599_next-auth_34f8d1._.js:2875:107)\n' +
' at AuthHandler (D:\\React\\Dragoguard-Dashboard\\.next\\server\\chunks\\43599_next-auth_34f8d1._.js:3501:51)\n' +
' at async NextAuthRouteHandler (D:\\React\\Dragoguard-Dashboard\\.next\\server\\chunks\\43599_next-auth_34f8d1._.js:3709:30)\n' +
' at async NextAuth._args$ (D:\\React\\Dragoguard-Dashboard\\.next\\server\\chunks\\43599_next-auth_34f8d1._.js:3744:24)\n' +
' at async D:\\React\\Dragoguard-Dashboard\\node_modules\\.pnpm\\[email protected][email protected][email protected]\\node_modules\\next\\dist\\compiled\\next-server\\app-route.runtime.dev.js:6:63251',
name: 'Error'
[next-auth][error][OAUTH_CALLBACK_ERROR]
https://next-auth.js.org/errors#oauth_callback_error access_denied {
message: 'access_denied',
stack: 'Error: access_denied\n' +
' at oAuthCallback (D:\\React\\Dragoguard-Dashboard\\.next\\server\\chunks\\43599_next-auth_34f8d1._.js:2730:23)\n' +
' at Object.callback (D:\\React\\Dragoguard-Dashboard\\.next\\server\\chunks\\43599_next-auth_34f8d1._.js:2875:107)\n' +
' at AuthHandler (D:\\React\\Dragoguard-Dashboard\\.next\\server\\chunks\\43599_next-auth_34f8d1._.js:3501:51)\n' +
' at async NextAuthRouteHandler (D:\\React\\Dragoguard-Dashboard\\.next\\server\\chunks\\43599_next-auth_34f8d1._.js:3709:30)\n' +
' at async NextAuth._args$ (D:\\React\\Dragoguard-Dashboard\\.next\\server\\chunks\\43599_next-auth_34f8d1._.js:3744:24)\n' +
' at async D:\\React\\Dragoguard-Dashboard\\node_modules\\.pnpm\\[email protected][email protected][email protected]\\node_modules\\next\\dist\\compiled\\next-server\\app-route.runtime.dev.js:6:63251',
name: 'Error'
12 replies
TTCTheo's Typesafe Cult
Created by Aditya Kirad on 12/21/2023 in #questions
need help with customizing error page if auth is failed
yeah next-auth did throw an error when I canceled the authorizaion it was this error
[next-auth][error][OAUTH_CALLBACK_HANDLER_ERROR]
https://next-auth.js.org/errors#oauth_callback_handler_error access_denied {
error: {
message: 'access_denied',
stack: 'Error: access_denied\n' +
' at oAuthCallback (D:\\React\\Dragoguard-Dashboard\\.next\\server\\chunks\\43599_next-auth_34f8d1._.js:2730:23)\n' +
' at Object.callback (D:\\React\\Dragoguard-Dashboard\\.next\\server\\chunks\\43599_next-auth_34f8d1._.js:2875:107)\n' +
' at AuthHandler (D:\\React\\Dragoguard-Dashboard\\.next\\server\\chunks\\43599_next-auth_34f8d1._.js:3501:51)\n' +
' at async NextAuthRouteHandler (D:\\React\\Dragoguard-Dashboard\\.next\\server\\chunks\\43599_next-auth_34f8d1._.js:3709:30)\n' +
' at async NextAuth._args$ (D:\\React\\Dragoguard-Dashboard\\.next\\server\\chunks\\43599_next-auth_34f8d1._.js:3744:24)\n' +
' at async D:\\React\\Dragoguard-Dashboard\\node_modules\\.pnpm\\[email protected][email protected][email protected]\\node_modules\\next\\dist\\compiled\\next-server\\app-route.runtime.dev.js:6:63251',
name: 'Error'
},
error_description: 'The resource owner or authorization server denied the request',
providerId: 'discord',
message: 'access_denied'

}
[next-auth][error][OAUTH_CALLBACK_HANDLER_ERROR]
https://next-auth.js.org/errors#oauth_callback_handler_error access_denied {
error: {
message: 'access_denied',
stack: 'Error: access_denied\n' +
' at oAuthCallback (D:\\React\\Dragoguard-Dashboard\\.next\\server\\chunks\\43599_next-auth_34f8d1._.js:2730:23)\n' +
' at Object.callback (D:\\React\\Dragoguard-Dashboard\\.next\\server\\chunks\\43599_next-auth_34f8d1._.js:2875:107)\n' +
' at AuthHandler (D:\\React\\Dragoguard-Dashboard\\.next\\server\\chunks\\43599_next-auth_34f8d1._.js:3501:51)\n' +
' at async NextAuthRouteHandler (D:\\React\\Dragoguard-Dashboard\\.next\\server\\chunks\\43599_next-auth_34f8d1._.js:3709:30)\n' +
' at async NextAuth._args$ (D:\\React\\Dragoguard-Dashboard\\.next\\server\\chunks\\43599_next-auth_34f8d1._.js:3744:24)\n' +
' at async D:\\React\\Dragoguard-Dashboard\\node_modules\\.pnpm\\[email protected][email protected][email protected]\\node_modules\\next\\dist\\compiled\\next-server\\app-route.runtime.dev.js:6:63251',
name: 'Error'
},
error_description: 'The resource owner or authorization server denied the request',
providerId: 'discord',
message: 'access_denied'

}
12 replies
TTCTheo's Typesafe Cult
Created by Aditya Kirad on 12/21/2023 in #questions
need help with customizing error page if auth is failed
I created a new page in the app directory like this oauth/auth-failed/page.tsx and then in next-auth options I put this
pages: {
error: '/oauth/auth-failed'
}
pages: {
error: '/oauth/auth-failed'
}
and after saving the next-auth file when I tried to login and cancel the login it gone back to the homepage not the error page
12 replies
TTCTheo's Typesafe Cult
Created by Aditya Kirad on 12/21/2023 in #questions
need help with customizing error page if auth is failed
I triedd it but it didn't worked
12 replies
TTCTheo's Typesafe Cult
Created by Aditya Kirad on 12/21/2023 in #questions
need help with customizing error page if auth is failed
ok I will try
12 replies