Spaces:
Sleeping
Sleeping
fix(auth): make debug log info
Browse files
src/routes/login/callback/updateUser.ts
CHANGED
|
@@ -81,7 +81,7 @@ export async function updateUser(params: {
|
|
| 81 |
|
| 82 |
// sorry for the ugly debug oof
|
| 83 |
if (username === "nsarrazin") {
|
| 84 |
-
logger.
|
| 85 |
}
|
| 86 |
// if using huggingface as auth provider, check orgs for earl access and amin rights
|
| 87 |
const isAdmin = (HF_ORG_ADMIN && orgs?.some((org) => org.sub === HF_ORG_ADMIN)) || false;
|
|
|
|
| 81 |
|
| 82 |
// sorry for the ugly debug oof
|
| 83 |
if (username === "nsarrazin") {
|
| 84 |
+
logger.info(orgs, "nsarrazin orgs");
|
| 85 |
}
|
| 86 |
// if using huggingface as auth provider, check orgs for earl access and amin rights
|
| 87 |
const isAdmin = (HF_ORG_ADMIN && orgs?.some((org) => org.sub === HF_ORG_ADMIN)) || false;
|