Answer the question
In order to leave comments, you need to log in
How can the response JWTAuthenticationBundle be modified?
The project uses JWTAuthenticationBundle for authorization by token.
At the moment, in case of successful authorization, a json with a token is returned to the client.
I intercept the successful authorization event in the plugin (sylius-shop-api) , but I have no idea how to modify the response.
I need to add one more parameter to the response
{
"token": "token-value",
"cartToken": "value"
}
Answer the question
In order to leave comments, you need to log in
Is this the bundle? https://github.com/lexik/LexikJWTAuthenticationBundle
If yes, then like this:
https://github.com/lexik/LexikJWTAuthenticationBun...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question