Ali Raza Khalid

Results 36 comments of Ali Raza Khalid

I have tried using the client useSession() hook to do this but it didnot work either To me it seems that the way my callbacks are working is causing the...

hi guys I think I have solved it auth.js file: ``` import NextAuth, { CredentialsSignin } from "next-auth"; import Credentials from "next-auth/providers/credentials"; export const { handlers, auth, signIn, signOut }...

Basically I had to play with the `callbacks` for correct handling unfortunately I did not found the correct docs for this but it works. I have created a repository https://github.com/Ali-Raza764/authv5...

@suitux @monsterooo @TauanAlmeida @linyiru check out this approach and tell me your results my dependencies are the following: ``` "dependencies": { "next": "14.2.13", "next-auth": "^5.0.0-beta.21", "react": "^18", "react-dom": "^18" },...

It works for me now. Can you share the repo url or code so I can take a look ?

Try passing some arguments from the client side session update and recieve them inside the trigger. This will at least make sure if the trigger is working. Then try checking...

I will close this issue for now. I don't see any progress here. If your issue doesn't resolve open a fresh one. Really nice to discuss the problem with you...

Yeah session refresh and updation is a headache in auth.js for now in my projects I try to just logout the user and ask them to sign in again. I...

Guess a simple straight forward example should be made with session updates etc... what are your thoughts?

Hi there, What I understand by your issue is that you want to throw some error when the authentication fails. We had a long discussion with a solution here https://github.com/nextauthjs/next-auth/issues/11747#issuecomment-2367785095...