-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
When I try to authenticate with an invalid code, I get a meaningless exception
try {
workos.userManagement.authenticateWithCode(clientId, "some invalid code", null);
} catch (Exception e) {
log.error(e.getMessage());
}

The reason of this is this line
The actual payload we have:
{
"error" : "invalid_grant",
"error_description" : "The code 'D01K0EWQ9V6SYP9F5D14QPHBQ8Edd' has expired or is invalid."
}
But we try to map it to BadRequestExceptionResponse which has completely different fields, so everything is null there
Metadata
Metadata
Assignees
Labels
No labels