From e54ffb611d791ee2cc2f9914cc958779423ff2ee Mon Sep 17 00:00:00 2001 From: Hailey Date: Fri, 2 Aug 2024 12:08:40 -0700 Subject: [PATCH] tweaks --- src/routes.ts | 1 + src/screens/Login/CallbackScreen.tsx | 7 +++++++ src/screens/Login/LoginForm.tsx | 6 ++++++ 3 files changed, 14 insertions(+) create mode 100644 src/screens/Login/CallbackScreen.tsx 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) {