···
1
1
{
2
2
-
"client_id": "https://testing.cred.blue/client-metadata.json",
2
2
+
"client_id": "https://cred.blue/client-metadata.json",
3
3
"client_name": "cred.blue",
4
4
-
"client_uri": "https://testing.cred.blue",
4
4
+
"client_uri": "https://cred.blue",
5
5
"redirect_uris": [
6
6
-
"https://testing.cred.blue/login/callback"
6
6
+
"https://cred.blue/login/callback"
7
7
],
8
8
"scope": "atproto transition:generic",
9
9
"grant_types": [
···
5
5
export const AuthContext = createContext(null);
6
6
7
7
// Set the appropriate domain based on the current hostname
8
8
-
let domain = 'https://cred.blue';
8
8
+
let domain = 'https://testing.cred.blue';
9
9
10
10
// Always use the current domain for client_id to ensure it matches the host
11
11
-
const metadataUrl = `https://cred.blue/client-metadata.json`;
11
11
+
const metadataUrl = `https://testing.cred.blue/client-metadata.json`;
12
12
13
13
// Client metadata for Bluesky OAuth
14
14
const clientMetadata = {
15
15
client_id: metadataUrl,
16
16
-
client_name: "Cred.blue",
16
16
+
client_name: "cred.blue",
17
17
client_uri: domain,
18
18
-
redirect_uris: [`https://cred.blue/login/callback`],
19
19
-
logo_uri: `https://cred.blue/favicon.ico`,
18
18
+
redirect_uris: [`https://testing.cred.blue/login/callback`],
19
19
+
logo_uri: `https://testing.cred.blue/favicon.ico`,
20
20
scope: "atproto transition:generic",
21
21
grant_types: ["authorization_code", "refresh_token"],
22
22
response_types: ["code"],