-
Hello Gokul! I just implemented API Guard for a nuxt project. Really easy and straightforward, which is really nice. But I was wondering how you can send the token on user authentication in the body request instead of the header ? As I said, I'm using the auth module of nuxt, and to store the token, they grab it from the body and not from the header. I tweaked a bit the AuthenticationController to make it work. That's what I came up with : `module InternUsers
end` |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
@Segrelove Currently, there is no way to send the token in response body. The tweak that you added should work for now. Thanks for bringing this. I will consider this and try to add an option in the gem to configure how the token should be sent in the response (body/header). |
Beta Was this translation helpful? Give feedback.
@Segrelove Currently, there is no way to send the token in response body. The tweak that you added should work for now.
Thanks for bringing this. I will consider this and try to add an option in the gem to configure how the token should be sent in the response (body/header).