2023-12-17 14:19:05 +00:00
|
|
|
package config
|
|
|
|
|
2024-01-15 10:33:24 +00:00
|
|
|
import (
|
|
|
|
authservice "git.gocasts.ir/ebhomengo/niki/service/auth/benefactor"
|
|
|
|
benefactorservice "git.gocasts.ir/ebhomengo/niki/service/benefactor/benefactor"
|
|
|
|
)
|
|
|
|
|
2023-12-17 14:19:05 +00:00
|
|
|
func Default() Config {
|
2024-01-15 10:33:24 +00:00
|
|
|
cfx := Config{
|
|
|
|
Auth: authservice.Config{
|
|
|
|
AccessExpirationTime: AccessTokenExpireDuration,
|
|
|
|
RefreshExpirationTime: RefreshTokenExpireDuration,
|
|
|
|
AccessSubject: AccessTokenSubject,
|
|
|
|
RefreshSubject: RefreshTokenSubject,
|
|
|
|
},
|
|
|
|
|
|
|
|
BenefactorSvc: benefactorservice.Config{
|
|
|
|
OtpChars: OtpChars,
|
|
|
|
OtpExpireTime: OtpExpireTime,
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
return cfx
|
2023-12-17 14:19:05 +00:00
|
|
|
}
|