Skip to content
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

Messagebird SMS provider #210

Merged

Conversation

MonsterDeveloper
Copy link
Contributor

Hi there! This PR, based on @kangmingtay solution for OTP, introduces a new SMS provider — Messagebird. Since I don't have much Golang experience, there is more (probably) to be done, but I hope that my code will kickstart the progress of adding a new provider.

What is the current behavior?

The only available SMS provider is Twilio.

What is the new behavior?

By changing GOTRUE_SMS_PROVIDER environment variable to messagebird and setting respective variables for access key and sender phone number, users will be able to send SMS with OTP codes through MessageBird API.

@MonsterDeveloper
Copy link
Contributor Author

Hello everyone! Any comments on my PR? Can you review it? Thanks!

@kangmingtay
Copy link
Member

Hey @MonsterDeveloper, thanks so much for contributing a new provider for sms! It's been a really busy month for me so far and I haven't had the time to review and test this yet. Ideally, I'd prefer if there are accompanying tests for this but I know that the tests are non-existent even for the twilio provider so that's why I haven't pushed for it yet. I'll be looking at reviewing this some time in the mid-end of October.

Copy link
Member

@kangmingtay kangmingtay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @MonsterDeveloper, thanks so much for adding this provider! Sorry for only being able to take a look at it now, but i've just tested it and everything seems to work well. I've left a couple of review comments, would be great if you can take a look at them and make the changes!

api/sms_provider/messagebird.go Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
@kangmingtay
Copy link
Member

Hey @MonsterDeveloper, amazing work on the PR, please reach out to me on discord at kangmingtay#7177 so we can swag you up!!

@kangmingtay kangmingtay merged commit 40bb8f4 into supabase:master Nov 1, 2021
@github-actions
Copy link
Contributor

github-actions bot commented Nov 1, 2021

🎉 This PR is included in version 2.1.20 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@MonsterDeveloper
Copy link
Contributor Author

@kangmingtay that's amazing news! Thanks! I've just sent a friendship request to you on Discord (from Everjust) 😁

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants