π¨ The ultimate agentic social media scheduling tool π€
TypeScript nextjsopen-sourceopen-source-social-media-scheduling-toolosspostiz-cloudpostiz-hostedredisscheduling-toolsocial-media-scheduling-tooltypescript
fix(farcaster): url-encode the base64 code in redirects
Gilad Resisi16517c21e98d
diff --git a/apps/frontend/src/components/auth/providers/farcaster.provider.tsx b/apps/frontend/src/components/auth/providers/farcaster.provider.tsxindex 5d0d281cb..9e5e16361 100644--- a/apps/frontend/src/components/auth/providers/farcaster.provider.tsx+++ b/apps/frontend/src/components/auth/providers/farcaster.provider.tsx@@ -10,7 +10,7 @@ export const FarcasterProvider = () => {const fetch = useFetch();const gotoLogin = useCallback(async (code: string) => {const state = await (await fetch('/auth/oauth/FARCASTER')).text();- window.location.href = `/auth?provider=FARCASTER&code=${code}&state=${state}`;+ window.location.href = `/auth?provider=FARCASTER&code=${encodeURIComponent(code)}&state=${state}`;}, []);return <ButtonCaster login={gotoLogin} />;};diff --git a/apps/frontend/src/components/launches/add.provider.component.tsx b/apps/frontend/src/components/launches/add.provider.component.tsxindex 9ff651acb..17ba43307 100644--- a/apps/frontend/src/components/launches/add.provider.component.tsx+++ b/apps/frontend/src/components/launches/add.provider.component.tsx@@ -453,7 +453,7 @@ export const AddProviderComponent: FC<{><Web3ProvidersonComplete={(code, newState) => {- window.location.href = `/integrations/social/${identifier}?code=${code}&state=${newState}${+ window.location.href = `/integrations/social/${identifier}?code=${encodeURIComponent(code)}&state=${newState}${onboarding ? '&onboarding=true' : ''}`;}}