feat: kavenegar sdk, otp generation and verifying

This commit is contained in:
2025-09-15 16:36:52 +03:30
parent 36cda3fd5a
commit 5829b471d5
9 changed files with 131 additions and 10 deletions
+12 -6
View File
@@ -1,12 +1,13 @@
package config
type Config struct {
Server Server `mapstructure:"server"`
JWT JWT `mapstructure:"jwt"`
DB DB `mapstructure:"db"`
Redis Redis `mapstructure:"redis"`
KYCProvider KYC `mapstructure:"kyc"`
OTP OTP `mapstructure:"otp"`
Server Server `mapstructure:"server"`
JWT JWT `mapstructure:"jwt"`
DB DB `mapstructure:"db"`
Redis Redis `mapstructure:"redis"`
KYCProvider KYC `mapstructure:"kyc"`
OTP OTP `mapstructure:"otp"`
Kavenegar SMSProvider `mapstructure:"kavenegar"`
}
type Server struct {
Host string `mapstructure:"host"`
@@ -41,3 +42,8 @@ type KYC struct {
type OTP struct {
CodeExpMinutes uint `mapstructure:"code_exp_minutes"`
}
type SMSProvider struct {
APIKey string `mapstructure:"api_key"`
Template string `mapstructure:"template"`
}