Oh damn 0.23 is still not out. Can't wait for the OTP stuff, pretty cool
@earlymorningdevАй бұрын
Yeah figured I would get the start on making it easy for people worried about how to actually do it
@JTActionFishingАй бұрын
I had upgraded myself before this document came out. It’s not too bad. I only support sms login in my app and reimplemented OTP using sms since it’s only supported using mail.
@earlymorningdevАй бұрын
Nice what service did you use?
@JTActionFishingАй бұрын
For some reason setting up twilio in South Africa is a pain. I already have AWS running my pocketbase instance with Terraform, so it made sense to utilise SNS for text messaging. I looked into the OTPRequest function in the core pocketbase code and copied how it’s done and replaced the trigger portion that triggers a mail, to trigger an sms. In future it might be beneficial for pocketbase to have configuration for sms in the admin panel and then enable the notification type to be selected for that event which will either send an sms, mail or both
@earlymorningdevАй бұрын
Useful to know. Never used sns before. I have used twilio was it much harder to navigate?
@JTActionFishingАй бұрын
@ SNS took me 5 minutes to setup and add in the code. I just had to wait about a day for AWS to take me out of the sandbox. You should be able to get setup quickly and use the sandbox mode none the less.
@JTActionFishingАй бұрын
I’ll create a new channel at some point specifically for dev in go. Pocketbase will be one of my main areas to focus on since the documentation is still not where it should be. I’ve read through the whole code base and have a good understanding of how it works. I’ve used go to build and app using a single binary (Frontend, pocketbase and db), the Frontend re-uses the mux router for all its endpoints and utilises hooks for core business logic and uses the core library to run db calls.
@greendsnowАй бұрын
Can't read meeh, can't read maah, No he can't read my pocketbase, na ah, she's got to love nobody.