forked from ebhomengo/niki
31 lines
816 B
Go
31 lines
816 B
Go
package config
|
|
|
|
import (
|
|
authservice "git.gocasts.ir/ebhomengo/niki/service/auth"
|
|
benefactorservice "git.gocasts.ir/ebhomengo/niki/service/benefactor/benefactor"
|
|
)
|
|
|
|
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,
|
|
},
|
|
}
|
|
|
|
return cfx
|
|
}
|