Skip to content

Commit 2a6d153

Browse files
Add logo to OAuth metadata
1 parent 78e0188 commit 2a6d153

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

server/utils/atproto/oauth.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ export function getOauthClientMetadata() {
3333
client_name: 'npmx.dev',
3434
client_id,
3535
client_uri,
36+
logo_uri: `${client_uri}/logo.svg`,
3637
scope,
3738
redirect_uris: [redirect_uri] as [string, ...string[]],
3839
grant_types: ['authorization_code', 'refresh_token'],

shared/schemas/oauth.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ export const OAuthMetadataSchema = object({
44
client_id: pipe(string(), url()),
55
client_name: string(),
66
client_uri: pipe(string(), url()),
7+
logo_uri: pipe(string(), url()),
78
redirect_uris: pipe(array(string()), minLength(1)),
89
scope: string(),
910
grant_types: array(string()),

0 commit comments

Comments
 (0)