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"
|
||||
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]]
|
||||
from = "/*"
|
||||
to = "/"
|
||||
|
||||
@@ -3,8 +3,7 @@
|
||||
"client_name": "Remanso",
|
||||
"client_uri": "https://remanso.space",
|
||||
"redirect_uris": [
|
||||
"https://remanso.space/",
|
||||
"http://localhost:5173/"
|
||||
"https://remanso.space/"
|
||||
],
|
||||
"scope": "atproto transition:generic",
|
||||
"grant_types": ["authorization_code", "refresh_token"],
|
||||
|
||||
@@ -8,7 +8,10 @@ let clientPromise: Promise<BrowserOAuthClient> | null = null
|
||||
|
||||
export const getOAuthClient = (): Promise<BrowserOAuthClient> => {
|
||||
if (!clientPromise) {
|
||||
clientPromise = BrowserOAuthClient.load({ clientId: CLIENT_ID })
|
||||
clientPromise = BrowserOAuthClient.load({
|
||||
clientId: CLIENT_ID,
|
||||
handleResolver: 'https://bsky.social',
|
||||
})
|
||||
}
|
||||
return clientPromise
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user