fix: redirect from netlify
This commit is contained in:
11
netlify.toml
11
netlify.toml
@@ -7,6 +7,17 @@ from = "/.well-known/*"
|
|||||||
to = "/.well-known/:splat"
|
to = "/.well-known/:splat"
|
||||||
status = 200
|
status = 200
|
||||||
|
|
||||||
|
[[headers]]
|
||||||
|
for = "/client-metadata.json"
|
||||||
|
[headers.values]
|
||||||
|
Access-Control-Allow-Origin = "*"
|
||||||
|
Content-Type = "application/json"
|
||||||
|
|
||||||
|
[[redirects]]
|
||||||
|
from = "/client-metadata.json"
|
||||||
|
to = "/client-metadata.json"
|
||||||
|
status = 200
|
||||||
|
|
||||||
[[redirects]]
|
[[redirects]]
|
||||||
from = "/*"
|
from = "/*"
|
||||||
to = "/"
|
to = "/"
|
||||||
|
|||||||
@@ -3,8 +3,7 @@
|
|||||||
"client_name": "Remanso",
|
"client_name": "Remanso",
|
||||||
"client_uri": "https://remanso.space",
|
"client_uri": "https://remanso.space",
|
||||||
"redirect_uris": [
|
"redirect_uris": [
|
||||||
"https://remanso.space/",
|
"https://remanso.space/"
|
||||||
"http://localhost:5173/"
|
|
||||||
],
|
],
|
||||||
"scope": "atproto transition:generic",
|
"scope": "atproto transition:generic",
|
||||||
"grant_types": ["authorization_code", "refresh_token"],
|
"grant_types": ["authorization_code", "refresh_token"],
|
||||||
|
|||||||
@@ -8,7 +8,10 @@ let clientPromise: Promise<BrowserOAuthClient> | null = null
|
|||||||
|
|
||||||
export const getOAuthClient = (): Promise<BrowserOAuthClient> => {
|
export const getOAuthClient = (): Promise<BrowserOAuthClient> => {
|
||||||
if (!clientPromise) {
|
if (!clientPromise) {
|
||||||
clientPromise = BrowserOAuthClient.load({ clientId: CLIENT_ID })
|
clientPromise = BrowserOAuthClient.load({
|
||||||
|
clientId: CLIENT_ID,
|
||||||
|
handleResolver: 'https://bsky.social',
|
||||||
|
})
|
||||||
}
|
}
|
||||||
return clientPromise
|
return clientPromise
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user