2 different response types from REST endpoint, how to account for this?
Content
Hi,
I am creating a login page which calls a POST REST endpoint. I have create a type from the response when the login is successful, I receive a lot of data back about the user along with a token. However, if the authentication is not successful the response has completely different variables. Currently on my action for a button I have the call REST endpoint linked to the responseType of a call that is successful. However, if the login is not successful then those values aren't available to this responseType as they are stored in a different type.
Tagged:
0