Skip to content

The API key-pair is invalid. #36

Description

@pirtpal-rwit

i used https://github.com/WP-API/jwt-auth for authentication

I created api-key and api-secret in profile page

{
    "api_key": "3AHiAkLol3YeOLLEQrDdQ8tNf",
    "api_secret": "zdQ$YiV*3CKOhm^cTNgr*tZ7XrsaX3nQ"
}

Also added in config file

define('JWT_AUTH_SECRET_KEY', '5yDulS24m?Q]rD[rt[W0@X*J*c?QJNnXig=hh+ID{YKi)]H#:9E!Zi%-]q^l]I2A');
define('JWT_AUTH_CORS_ENABLE', true);

when i call api (http://acms-srs.localhost/wp-json/wp/v2/token), showing errors

{
    "code": "rest_authentication_invalid_api_key_secret",
    "message": "The API key-pair is invalid.",
    "data": {
        "status": 403
    }
}

enter image description here

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions