Performing an action after user signs out - Session Database Hook
I want to write to some log when a user signs in and signs out. I saw we can use the database hook for this:
The create hook successfully runs after a sign in, but I couldnt get the delete hook to run after I sign out. On the client I do this:
I can also see that the corresponding session is deleted in my database after the sign-out. What might be wrong with my code?
The create hook successfully runs after a sign in, but I couldnt get the delete hook to run after I sign out. On the client I do this:
I can also see that the corresponding session is deleted in my database after the sign-out. What might be wrong with my code?