I have a custom login endpoint which returns
{
extensions: 'Invalid user credentials.',
code: 'INTERNAL_SERVER_ERROR',
status: 500
}
yet my login credentials are correct.
My code is
// return token
const authenticationService = new AuthenticationService({
accountability: null,
schema: await getSchema(),
});
const loginResponse = await authenticationService
.login(
"default",
{
email: value.email,
password: value.password,
},
{ session: false }
)
.catch((error: any) => {
throw new InternalServerError(error.message);
});