+19
client-metadata.json
+19
client-metadata.json
···
1
+
{
2
+
"client_id": "https://tangled.org/sharpmars.nekoweb.org/dusksky/raw/main/client-metadata.json",
3
+
"client_name": "React Native OAuth Client Demo",
4
+
"client_uri": "https://example.com",
5
+
"redirect_uris": [
6
+
"net.sharpmars.dusksky:/auth/callback"
7
+
],
8
+
"scope": "atproto repo:* rpc:*?aud=did:web:api.bsky.app#bsky_appview",
9
+
"token_endpoint_auth_method": "none",
10
+
"response_types": [
11
+
"code"
12
+
],
13
+
"grant_types": [
14
+
"authorization_code",
15
+
"refresh_token"
16
+
],
17
+
"application_type": "native",
18
+
"dpop_bound_access_tokens": true
19
+
}
+1
-12
src/app/_layout.tsx
+1
-12
src/app/_layout.tsx
···
12
12
const queryClient = new QueryClient();
13
13
const oauthOps: ExpoOAuthClientOptions = {
14
14
handleResolver: "https://slingshot.microcosm.blue",
15
-
clientMetadata: {
16
-
client_id: "https://example.com/client-metadata.json",
17
-
client_name: "React Native OAuth Client Demo",
18
-
client_uri: "https://example.com",
19
-
redirect_uris: ["net.sharpmars.dusksky:/auth/callback"],
20
-
scope: "atproto repo:* rpc:*?aud=did:web:api.bsky.app#bsky_appview",
21
-
token_endpoint_auth_method: "none",
22
-
response_types: ["code"],
23
-
grant_types: ["authorization_code", "refresh_token"],
24
-
application_type: "native",
25
-
dpop_bound_access_tokens: true,
26
-
},
15
+
clientMetadata: require("../../client-metadata.json"),
27
16
};
28
17
const oauth: ExpoOAuthClientInterface = new ExpoOAuthClient(oauthOps);
29
18