-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
authkey is invalid error occurs when trying to resend otp #6
Comments
Provide some context on the way you are resending the OTPs along with error responses. |
Steps to recreate: Create a new Laravel 8 project If you need additional information please let me know. |
Hey @sahilsethchd Just created a PR for this fix. The issue was related to request's content type headers. Some apis requires I have tested it on my end but you should test it as well and then I will merge. Go to class ResendRequest extends Request
{
protected $url = URLs::OTP_RESEND_URL;
+
+ protected $content_type = \GuzzleHttp\RequestOptions::FORM_PARAMS; If it fixed the problem, please update me here and I will push a new release. |
Thanks for your reply. It resolved the issue. Well, I checked the docs for MSG91 @ https://docs.msg91.com/p/tf9GTextN/e/7WESqQ4RLu/MSG91 It is clearly mentioned that they accept params in form-data (sendotp, resendotp and verifyotp) where as json required for sending Sms via flow. |
🎉 This issue has been resolved in version 0.15.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
A clear test case to reproduce the bug
Expected behavior
A clear and concise description of what you expected to happen.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: