Spaces:
Sleeping
Sleeping
make it work
Browse files
auth.py
CHANGED
@@ -30,7 +30,7 @@ oauth.register(
|
|
30 |
|
31 |
|
32 |
async def oauth_login(request: Request):
|
33 |
-
redirect_uri = request.url_for("oauth_redirect_callback")
|
34 |
return await oauth.huggingface.authorize_redirect(request, redirect_uri)
|
35 |
|
36 |
|
|
|
30 |
|
31 |
|
32 |
async def oauth_login(request: Request):
|
33 |
+
redirect_uri = request.url_for("oauth_redirect_callback").replace('http://', 'https://')
|
34 |
return await oauth.huggingface.authorize_redirect(request, redirect_uri)
|
35 |
|
36 |
|