ApiV2-GraphQL-Docs
ApiV2-GraphQL-Docs copied to clipboard
Wrong redirect URI on docs
https://anilist.gitbook.io/anilist-apiv2-docs/overview/oauth/authorization-code-grant
This page says we need to redirect users to the URI below:
https://anilist.co/api/v2/oauth/authorize?client_id={client_id}&redirect_uri={redirect_uri}&response_type=code
However, with ` I got this error
{
"error": "invalid_client",
"message": "Client authentication failed"
}
I removed redirect_uri= and it finally worked. Is docs wrong?
Make sure you have the right configuration set in the Api Clients settings:
This would result in an authorize URL like this:
https://anilist.co/api/v2/oauth/authorize?client_id=1234&redirect_uri=https://example.com/callback&response_type=code