diff --git a/src/routes.ts b/src/routes.ts index ddf4fb39fa..d6c9859deb 100644 --- a/src/routes.ts +++ b/src/routes.ts @@ -47,4 +47,5 @@ export const router = new Router({ StarterPack: '/starter-pack/:name/:rkey', StarterPackShort: '/starter-pack-short/:code', StarterPackWizard: '/starter-pack/create', + AuthCallback: '/auth/callback', }) diff --git a/src/screens/Login/CallbackScreen.tsx b/src/screens/Login/CallbackScreen.tsx new file mode 100644 index 0000000000..11a54352d1 --- /dev/null +++ b/src/screens/Login/CallbackScreen.tsx @@ -0,0 +1,7 @@ +import React from 'react' + +import {ListMaybePlaceholder} from '#/components/Lists' + +export function CallbackScreen() { + return +} diff --git a/src/screens/Login/LoginForm.tsx b/src/screens/Login/LoginForm.tsx index 0edaa32f30..e0c84c9b61 100644 --- a/src/screens/Login/LoginForm.tsx +++ b/src/screens/Login/LoginForm.tsx @@ -46,6 +46,12 @@ type ServiceDescription = ComAtprotoServerDescribeServer.OutputSchema const client = new BrowserOAuthClient({ plcDirectoryUrl: 'https://plc.directory', handleResolver: 'https://bsky.social', + clientMetadata: { + client_id: 'http://localhost:19006/', + redirect_uris: ['http://localhost:19006/auth/callback'], + response_types: ['code'], + token_endpoint_auth_method: 'none', + }, }) export function useOAuth(client: BrowserOAuthClient) {