From c10f379f303e034b60d178f60dc30ffe31723fa9 Mon Sep 17 00:00:00 2001 From: Timo K Date: Fri, 1 Mar 2024 13:10:03 +0100 Subject: [PATCH] add comment Signed-off-by: Timo K --- src/auth/useInteractiveRegistration.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/auth/useInteractiveRegistration.ts b/src/auth/useInteractiveRegistration.ts index 521496d9..135d1fac 100644 --- a/src/auth/useInteractiveRegistration.ts +++ b/src/auth/useInteractiveRegistration.ts @@ -50,6 +50,7 @@ export const useInteractiveRegistration = (): { useEffect(() => { if (widget) return; + // An empty registerRequest is used to get the privacy policy and recaptcha key. authClient.current!.registerRequest({}).catch((error) => { setPrivacyPolicyUrl( error.data?.params["m.login.terms"]?.policies?.privacy_policy?.en?.url,