-
Notifications
You must be signed in to change notification settings - Fork 595
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@tinacms/cli update to v1.5.34 caused auth/authHooks onLogout don't triggered #4356
Comments
@mddanish00 Thanks for reporting this issue. The function is being called but for some reason As a temporary work around you can add See video for more details:https://www.loom.com/share/aef59a816ca1472fa9c03ba47b0893b8 I am looking into a fix that works as expected (same as the previous versions) |
@mddanish00 Does using If it does work as intended, we may update the docs / examples to use this pattern instead. |
I quickly tried this by updating my preview mode code but it didn't really work as I expected like before. It feels like the address just changed, browser don't actually go there. I tried both onLogin and onLogout. Preview mode don't activate at all. Also, it also do not redirect to the address that specified on the slug parameter. |
Gotcha! Thanks for trying |
Describe the issue that you're seeing. Any Loom videos or screenshots usually help a lot!
I used onLogin and onLogout hooks for draft/preview mode. I noticed that draft mode isn't disabled when I try to log out on TinaCMS admin. (in local)
I tested many things onLogout to conclude onLogout don't trigger after updating @tinacms/cli to v1.5.34.
If I downgrade the @tinacms/cli package to v1.5.31, it works normally again.
Reproduction
https://github.com/mddanish00/tina-new-ver-save-authhooks
Steps to reproduce
api/logout
that doesn't exist. (I don't know a better way to test this.)System Info
Validations
The text was updated successfully, but these errors were encountered: