feat: kavenegar sdk, otp generation and verifying
This commit is contained in:
+12
-6
@@ -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"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user