mirror of
https://tangled.org/tranquil.farm/tranquil-pds
synced 2026-02-08 21:30:08 +00:00
actually fix localhost client support
This commit is contained in:
@@ -9,7 +9,7 @@ const SCOPES = [
|
||||
].join(' ')
|
||||
const CLIENT_ID = !(import.meta.env.DEV)
|
||||
? `${window.location.origin}/oauth/client-metadata.json`
|
||||
: `http://localhost/oauth/client-metadata.json?scope=${SCOPES}`
|
||||
: `http://localhost/?scope=${SCOPES}`
|
||||
const REDIRECT_URI = `${window.location.origin}/`
|
||||
|
||||
interface OAuthState {
|
||||
|
||||
@@ -91,7 +91,8 @@ impl ClientMetadataCache {
|
||||
url.scheme() == "http"
|
||||
&& url.host_str() == Some("localhost")
|
||||
&& url.port().is_none()
|
||||
&& url.path().is_empty()
|
||||
// empty path
|
||||
&& url.path() == "/"
|
||||
} else {
|
||||
false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user