Mark-Lasfar
commited on
Commit
·
8fa53e0
1
Parent(s):
1a47e08
fix import
Browse files- api/auth.py +2 -2
api/auth.py
CHANGED
|
@@ -152,7 +152,7 @@ google_oauth_router = get_oauth_router(
|
|
| 152 |
get_user_manager,
|
| 153 |
state_secret=SECRET,
|
| 154 |
associate_by_email=True,
|
| 155 |
-
redirect_url="https://mgzon-mgzon-app.hf.space/
|
| 156 |
)
|
| 157 |
|
| 158 |
github_oauth_client._access_token_url = "https://github.com/login/oauth/access_token"
|
|
@@ -163,7 +163,7 @@ github_oauth_router = get_oauth_router(
|
|
| 163 |
get_user_manager,
|
| 164 |
state_secret=SECRET,
|
| 165 |
associate_by_email=True,
|
| 166 |
-
redirect_url="https://mgzon-mgzon-app.hf.space/
|
| 167 |
)
|
| 168 |
|
| 169 |
fastapi_users = FastAPIUsers[User, int](
|
|
|
|
| 152 |
get_user_manager,
|
| 153 |
state_secret=SECRET,
|
| 154 |
associate_by_email=True,
|
| 155 |
+
redirect_url="https://mgzon-mgzon-app.hf.space/auth/google/callback", # تعديل الـ redirect_url ليحوّل مباشرة إلى /chat
|
| 156 |
)
|
| 157 |
|
| 158 |
github_oauth_client._access_token_url = "https://github.com/login/oauth/access_token"
|
|
|
|
| 163 |
get_user_manager,
|
| 164 |
state_secret=SECRET,
|
| 165 |
associate_by_email=True,
|
| 166 |
+
redirect_url="https://mgzon-mgzon-app.hf.space/auth/github/callback", # تعديل الـ redirect_url ليحوّل مباشرة إلى /chat
|
| 167 |
)
|
| 168 |
|
| 169 |
fastapi_users = FastAPIUsers[User, int](
|