How should I properly extract the token from my API response? My backend returns the authentication token, but I'm not sure what the correct formula path should be in the "Set HttpOnly cookie" Value parameter.
Why is the Authorization header trying to get a cookie during the login request itself? Should this header be removed entirely from the login API configuration?
What's the best practice for handling form submission with API calls in Nordcraft? Should I use the form's submit event or the button's click event?
How can I conditionally set the cookie only when login is successful? Currently, the cookie action runs in onCompleted regardless of whether authentication succeeded or failed.
Expected Behavior:
User enters credentials and clicks Login
API call is made to backend
If successful, token is stored in HttpOnly cookie
User is redirected to /gri-management
If failed, user sees an error message