Spaces:
Sleeping
Sleeping
Commit
·
7c8ca97
1
Parent(s):
8565a1a
tring something
Browse files
main.py
CHANGED
@@ -414,9 +414,10 @@ async def oauth_callback(code: str, state: str):
|
|
414 |
|
415 |
@app.get("/oauth-config")
|
416 |
async def get_oauth_config():
|
|
|
417 |
return {
|
418 |
"client_id": client_id,
|
419 |
-
"redirect_uri": f'https://{
|
420 |
}
|
421 |
|
422 |
|
|
|
414 |
|
415 |
@app.get("/oauth-config")
|
416 |
async def get_oauth_config():
|
417 |
+
client_host = request.client.host
|
418 |
return {
|
419 |
"client_id": client_id,
|
420 |
+
"redirect_uri": f'https://{client_host}/login/callback'
|
421 |
}
|
422 |
|
423 |
|