This commit is contained in:
Hailey
2024-08-02 12:08:40 -07:00
parent ece9664856
commit e54ffb611d
3 changed files with 14 additions and 0 deletions
+1
View File
@@ -47,4 +47,5 @@ export const router = new Router({
StarterPack: '/starter-pack/:name/:rkey', StarterPack: '/starter-pack/:name/:rkey',
StarterPackShort: '/starter-pack-short/:code', StarterPackShort: '/starter-pack-short/:code',
StarterPackWizard: '/starter-pack/create', StarterPackWizard: '/starter-pack/create',
AuthCallback: '/auth/callback',
}) })
+7
View File
@@ -0,0 +1,7 @@
import React from 'react'
import {ListMaybePlaceholder} from '#/components/Lists'
export function CallbackScreen() {
return <ListMaybePlaceholder isLoading={true} />
}
+6
View File
@@ -46,6 +46,12 @@ type ServiceDescription = ComAtprotoServerDescribeServer.OutputSchema
const client = new BrowserOAuthClient({ const client = new BrowserOAuthClient({
plcDirectoryUrl: 'https://plc.directory', plcDirectoryUrl: 'https://plc.directory',
handleResolver: 'https://bsky.social', 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) { export function useOAuth(client: BrowserOAuthClient) {