forked from ebhomengo/niki
1
0
Fork 0
niki/config/default.go

34 lines
947 B
Go

package config
import (
authservice "git.gocasts.ir/ebhomengo/niki/service/auth"
benefactorservice "git.gocasts.ir/ebhomengo/niki/service/benefactor/benefactor"
"git.gocasts.ir/ebhomengo/niki/service/notification"
)
func Default() Config {
cfx := Config{
BenefactorAuth: authservice.Config{
AccessExpirationTime: AccessTokenExpireDuration,
RefreshExpirationTime: RefreshTokenExpireDuration,
AccessSubject: AccessTokenSubject,
RefreshSubject: RefreshTokenSubject,
},
AdminAuth: authservice.Config{
AccessExpirationTime: AccessTokenExpireDuration,
RefreshExpirationTime: RefreshTokenExpireDuration,
AccessSubject: AccessTokenSubject,
RefreshSubject: RefreshTokenSubject,
},
BenefactorSvc: benefactorservice.Config{
OtpChars: OtpChars,
OtpExpireTime: OtpExpireTime,
},
NotificationSvc: notification.Config{
Timeout: NotificationTimeout,
},
}
return cfx
}