add oauth metadata
This commit is contained in:
@@ -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
|
||||||
|
}
|
||||||
@@ -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 {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 =
|
export const BSKY_OAUTH_CLIENT: OAuthClient =
|
||||||
Platform.OS === 'web' ? createWebOAuthClient() : createNativeOAuthClient()
|
Platform.OS === 'web' ? createWebOAuthClient() : createNativeOAuthClient()
|
||||||
@@ -29,8 +29,8 @@ export function createNativeOAuthClient() {
|
|||||||
clientMetadata: {
|
clientMetadata: {
|
||||||
client_id: 'https://bsky.hailey.at/oauth-client-metadata.native.json',
|
client_id: 'https://bsky.hailey.at/oauth-client-metadata.native.json',
|
||||||
client_name: 'Bluesky Native App (Hailey Demo)',
|
client_name: 'Bluesky Native App (Hailey Demo)',
|
||||||
client_uri: 'https://hailey.at',
|
client_uri: 'https://bsky.hailey.at',
|
||||||
redirect_uris: ['at.hailey:/auth/callback'],
|
redirect_uris: ['at.hailey.bsky:/auth/callback'],
|
||||||
scope: 'atproto transition:generic',
|
scope: 'atproto transition:generic',
|
||||||
token_endpoint_auth_method: 'none',
|
token_endpoint_auth_method: 'none',
|
||||||
response_types: ['code'],
|
response_types: ['code'],
|
||||||
|
|||||||
Reference in New Issue
Block a user