wp-graphql / wp-graphql-jwt-authentication

Authentication for WPGraphQL using JWT (JSON Web Tokens)
GNU General Public License v3.0
333 stars 73 forks source link

Added the action graphql_jwt_auth_before_authenticate and the filter … #135

Closed spiralni closed 2 years ago

spiralni commented 3 years ago

…graphql_jwt_auth_after_authenticate to hook before and after the authentication process

Usage examples:

action: graphql_jwt_auth_before_authenticate I want to validate that a user has certain capability to login using graphql, e.g 'can_use_app' capability

filter: graphql_jwt_auth_after_authenticate I want to pass more info in the response payload