diff --git a/supertokens/utils.go b/supertokens/utils.go index ef9bf330..059b6150 100644 --- a/supertokens/utils.go +++ b/supertokens/utils.go @@ -76,9 +76,7 @@ func NormaliseInputAppInfoOrThrowError(appInfo AppInfo) (NormalisedAppinfo, erro origin = originResult } - return NormalisedURLDomain{ - value: origin, - }, nil + return NewNormalisedURLDomain(origin) } apiDomain, err := NewNormalisedURLDomain(appInfo.APIDomain)