We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 67774a5 commit 4191ac5Copy full SHA for 4191ac5
src/security/startAuthorizationCodeFlow.ts
@@ -15,7 +15,7 @@ const startAuthorizationCodeFlow = async (codeVerifier: string, namespace: Names
15
authorizationUrl.searchParams.append("client_id", namespace.clientId)
16
authorizationUrl.searchParams.append("response_type", "code")
17
authorizationUrl.searchParams.append("scope", `storage.read:/cannon.lock storage.create:/cannon.lock`) // TODO: Don't hardcode scopes
18
- authorizationUrl.searchParams.append("redirect_uri", "http://localhost:3000")
+ authorizationUrl.searchParams.append("redirect_uri", window.location.href)
19
authorizationUrl.searchParams.append("code_challenge", codeChallenge)
20
authorizationUrl.searchParams.append("code_challenge_method", "S256")
21
authorizationUrl.searchParams.append("state", `namespace:${namespace.prefix};federation:${federation.hostname}`)
0 commit comments