Hi, I have the same problem, do you have any solution?
Oct 21, 2019
5
Level 1
Use jwt.auth with Laravel vapor signed-storage-url
Using Tymon jwt tokens for auth. Laravel works fine.
When using the upload to S3 code for Laravel vapor I cannot get the signed-storage-url to use my axios defaults:
axios.defaults.headers.common["Authorization"] = Bearer ${token}
something to do with the npm module not being in the correct scope.
I have overridden the vapor-core signed-storage-url controller to use the token and can get that to work no problem. It is calling Vapor.store that doesn't add the token to the axios call
Please or to participate in this conversation.