diff --git a/packages/appview/src/api/oauth.ts b/packages/appview/src/api/oauth.ts index 5e3571e..58e47d8 100644 --- a/packages/appview/src/api/oauth.ts +++ b/packages/appview/src/api/oauth.ts @@ -88,12 +88,8 @@ export const createRouter = (ctx: AppContext) => { function isValidUrl(url: string): boolean { try { const urlp = new URL(url) - // http or https, no query params or path - return ( - (urlp.protocol === 'http:' || urlp.protocol === 'https:') && - !urlp.search && - !urlp.pathname - ) + // http or https + return urlp.protocol === 'http:' || urlp.protocol === 'https:' } catch (error) { return false } diff --git a/packages/client/src/pages/LoginPage.tsx b/packages/client/src/pages/LoginPage.tsx index f3ccd96..d64c4ac 100644 --- a/packages/client/src/pages/LoginPage.tsx +++ b/packages/client/src/pages/LoginPage.tsx @@ -49,7 +49,7 @@ const LoginPage = () => {
-

Login with your handle

+

Login with ATProto

{error && (
@@ -63,7 +63,7 @@ const LoginPage = () => { htmlFor="handle" className="block mb-2 text-gray-700 dark:text-gray-300" > - Enter your Bluesky handle or ATProto PDS: + Enter your Bluesky handle: { disabled={pending} className="w-full p-3 border border-gray-300 dark:border-gray-700 bg-white dark:bg-gray-700 text-gray-900 dark:text-gray-100 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-300 dark:focus:ring-blue-500 transition-colors" /> +

+ You can also enter an AT Protocol PDS URL, i.e.{' '} + https://bsky.social +