tangled
alpha
login
or
join now
graham.systems
/
statusphere-react
forked from
samuel.fm/statusphere-react
0
fork
atom
the statusphere demo reworked into a vite/react app in a monorepo
0
fork
atom
overview
issues
pulls
pipelines
update client metadata route
samuel.fm
11 months ago
abbec6c0
e2768323
+3
-3
3 changed files
expand all
collapse all
unified
split
packages
appview
README.md
src
api
oauth.ts
auth
client.ts
+1
-1
packages/appview/README.md
···
55
55
56
56
## API Endpoints
57
57
58
58
-
- `GET /client-metadata.json` - OAuth client metadata
58
58
+
- `GET /oauth-client-metadata.json` - OAuth client metadata
59
59
- `GET /oauth/callback` - OAuth callback endpoint
60
60
- `POST /login` - Login with handle
61
61
- `POST /logout` - Logout current user
+1
-1
packages/appview/src/api/oauth.ts
···
9
9
const router = express.Router()
10
10
11
11
// OAuth metadata
12
12
-
router.get('/client-metadata.json', (_req, res) => {
12
12
+
router.get('/oauth-client-metadata.json', (_req, res) => {
13
13
res.json(ctx.oauthClient.clientMetadata)
14
14
})
15
15
+1
-1
packages/appview/src/auth/client.ts
···
17
17
clientMetadata: {
18
18
client_name: 'Statusphere React App',
19
19
client_id: publicUrl
20
20
-
? `${url}/client-metadata.json`
20
20
+
? `${url}/oauth-client-metadata.json`
21
21
: `http://localhost?redirect_uri=${enc(`${url}/oauth/callback`)}&scope=${enc('atproto transition:generic')}`,
22
22
client_uri: url,
23
23
redirect_uris: [`${url}/oauth/callback`],