You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The resolver for the viewer field of the customerRegister mutation returns a WPGraphQL\Model\User, but the JWT plugin expects a \WP_User object.
Attempting to use any JWT fields in the resulting viewer field gives the following error:
Argument 1 passed to WPGraphQL\JWT_Authentication\ManageTokens::WPGraphQL\JWT_Authentication\{closure}() must be an instance of WP_User, instance of WPGraphQL\Model\User given
To Reproduce
Install wp-graphql-jwt-authentication, and perform the following mutatoin:
Describe the bug
The resolver for the
viewer
field of thecustomerRegister
mutation returns aWPGraphQL\Model\User
, but the JWT plugin expects a\WP_User
object.Attempting to use any JWT fields in the resulting
viewer
field gives the following error:Argument 1 passed to WPGraphQL\JWT_Authentication\ManageTokens::WPGraphQL\JWT_Authentication\{closure}() must be an instance of WP_User, instance of WPGraphQL\Model\User given
To Reproduce
Install
wp-graphql-jwt-authentication
, and perform the following mutatoin:The text was updated successfully, but these errors were encountered: