Closed BerniWittmann closed 1 month ago
Hi @BerniWittmann, thank you for the report - this is definitely something that can be improved. The HTTP methods are actually restricted in the mobile stack core, the RN wrapper only propagates the error, see: https://github.com/wultra/powerauth-mobile-sdk/blob/2702829bbfc9451ee308c91c46357f10ed7c5959/src/PowerAuth/PublicTypes.cpp#L125
We never got a hard request to go beyond the limited GET
, POST
, PUT
, or DELETE
methods (for some reason, we also support HEAD
), but if this was a blocking at some point, feel free to escalate the issue and we will have a look with priority.
Note: I will transfer this issue to https://github.com/wultra/powerauth-mobile-sdk
Thank you :)
Yes no issue for us, as we switched to PUT now, but just wanted to let you know :)
Hi @BerniWittmann, thank you for the report. I have already created a fix that will be released with the next SDK update in the 1.8.x release branch. If it’s important to you, I can release it sooner, but I would prefer to wait and resolve more issues in the update.
Hi @hvge Wow that was fast :) Please take all the time you need, no urgency required from my side
I figured out that when calling
requestSignature
the HTTP methodPATCH
does not seem to be supported as it results in a Signature Error.Example:
The above throws an error, but switching it out for "PUT" or "POST" works perfectly fine. Note: I tested this on the ios simulator.
Luckily this is not a blocking issue for us right now, but still wanted to let you know