fix cookie generation

This commit is contained in:
Lakhan Samani
2021-07-22 06:24:15 +05:30
parent d4b295320e
commit efce3337ec
2 changed files with 18 additions and 5 deletions

View File

@@ -7,7 +7,7 @@ import (
"github.com/yauthdev/yauth/server/constants"
)
func GetFrontendHost() string {
func GetDomainName() string {
u, err := url.Parse(constants.FRONTEND_URL)
if err != nil {
return `localhost`