From 50bb8cf923cf6f7ea8e10e305df4959f7221275e Mon Sep 17 00:00:00 2001 From: Pieter Heyvaert Date: Fri, 24 Mar 2023 13:45:49 +0100 Subject: [PATCH] docs: add responses when client credentials are incorrect * docs: add responses when client credentials are incorrect * fix: comment Joachim * Revert "fix: comment Joachim" This reverts commit aac6c738318e874101be044523a7679d53b74617. * fix: my own damn mess --- documentation/markdown/usage/client-credentials.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/documentation/markdown/usage/client-credentials.md b/documentation/markdown/usage/client-credentials.md index faf9f08a7..7889e85fc 100644 --- a/documentation/markdown/usage/client-credentials.md +++ b/documentation/markdown/usage/client-credentials.md @@ -40,6 +40,11 @@ const response = await fetch('http://localhost:3000/idp/credentials/', { const { id, secret } = await response.json(); ``` +If there is something wrong with your input the response code will be 500. +If no account is linked to the email, +the message will be "Account does not exist" and +if the password is wrong it will be "Incorrect password". + ## Requesting an Access token The ID and secret combination generated above can be used to request an Access Token from the server.