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
This commit is contained in:
Pieter Heyvaert 2023-03-24 13:45:49 +01:00 committed by GitHub
parent b5106ceaee
commit 50bb8cf923
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -40,6 +40,11 @@ const response = await fetch('http://localhost:3000/idp/credentials/', {
const { id, secret } = await response.json(); 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 ## Requesting an Access token
The ID and secret combination generated above can be used to request an Access Token from the server. The ID and secret combination generated above can be used to request an Access Token from the server.