Replies: 1 comment 4 replies
-
@monlor I believe you are looking for https://wasp-lang.dev/docs/auth/overview#onauthfailedredirectto-string- ! So in main.wasp file, you would have something like:
Does this solve your problem? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I hope this message finds you well. I'm reaching out to inquire about a specific functionality within Wasp-lang that I'm looking to implement in my project.
I'm interested in customizing the interception of interface calls to facilitate the following functionalities:
Custom 401 and 400 Responses Format: I aim to customize the response format for HTTP status codes 401 and 400 when an interface call encounters these errors. This customization would allow for a more tailored response to these specific error scenarios.
Redirect to /login Page on 401: Upon encountering a 401 Unauthorized status code, I would like the application to redirect the user to the /login page. This functionality is crucial for enhancing user experience and ensuring seamless navigation within the application.
I would greatly appreciate any guidance, suggestions, or resources you could provide regarding how to achieve these functionalities within Wasp-lang. Additionally, if there are any existing features, configurations, or plugins that facilitate this, please do point me in the right direction.
Thank you very much for your time and assistance.
Beta Was this translation helpful? Give feedback.
All reactions