add oauth metadata

This commit is contained in:
Hailey
2025-07-18 00:10:05 -07:00
parent 1bd46b44b7
commit 66ec6e9a8d
3 changed files with 43 additions and 5 deletions
+19
View File
@@ -0,0 +1,19 @@
{
"client_id": "https://bsky.hailey.at/oauth-client-metadata.json",
"client_name": "Bluesky (Hailey Demo)",
"client_uri": "https://bsky.hailey.at",
"redirect_uris": [
"https://bsky.hailey.at/auth/callback"
],
"scope": "atproto transition:generic",
"token_endpoint_auth_method": "none",
"response_types": [
"code"
],
"grant_types": [
"authorization_code",
"refresh_token"
],
"application_type": "web",
"dpop_bound_access_tokens": true
}
@@ -0,0 +1,19 @@
{
"client_id": "https://bsky.hailey.at/oauth-client-metadata.native.json",
"client_name": "Bluesky Native App (Hailey Demo)",
"client_uri": "https://bsky.hailey.at",
"redirect_uris": [
"at.hailey.bsky:/auth/callback"
],
"scope": "atproto transition:generic",
"token_endpoint_auth_method": "none",
"response_types": [
"code"
],
"grant_types": [
"authorization_code",
"refresh_token"
],
"application_type": "native",
"dpop_bound_access_tokens": true
}
+5 -5
View File
@@ -1,7 +1,7 @@
import {ExpoOAuthClient} from 'expo-atproto-auth'
import {BrowserOAuthClient} from '@atproto/oauth-client-browser'
import {OAuthClient} from '@atproto/oauth-client'
import {Platform} from 'react-native'
import {ExpoOAuthClient} from 'expo-atproto-auth'
import {type OAuthClient} from '@atproto/oauth-client'
import {BrowserOAuthClient} from '@atproto/oauth-client-browser'
export const BSKY_OAUTH_CLIENT: OAuthClient =
Platform.OS === 'web' ? createWebOAuthClient() : createNativeOAuthClient()
@@ -29,8 +29,8 @@ export function createNativeOAuthClient() {
clientMetadata: {
client_id: 'https://bsky.hailey.at/oauth-client-metadata.native.json',
client_name: 'Bluesky Native App (Hailey Demo)',
client_uri: 'https://hailey.at',
redirect_uris: ['at.hailey:/auth/callback'],
client_uri: 'https://bsky.hailey.at',
redirect_uris: ['at.hailey.bsky:/auth/callback'],
scope: 'atproto transition:generic',
token_endpoint_auth_method: 'none',
response_types: ['code'],