completionId: cgen-a2cb923349b24fce8c65221675ca6f6c

cgen-a2cb923349b24fce8c65221675ca6f6c
This commit is contained in:
Builder.io 2025-11-16 09:39:34 +00:00
parent f3808714c1
commit aeb43b494f

View file

@ -13,15 +13,13 @@ export default async function handler(req: VercelRequest, res: VercelResponse) {
}
try {
console.log("[Passport] Initializing admin client...");
console.log("[Passport] Subdomain request for:", username);
const admin = getAdminClient();
console.log("[Passport] Admin client initialized successfully");
const userFields = `
id,
username,
full_name,
email,
bio,
avatar_url,
banner_url,
@ -41,7 +39,7 @@ export default async function handler(req: VercelRequest, res: VercelResponse) {
updated_at
`;
// Try to look up user by username first (case-insensitive)
// Try to look up user by username first (exact match)
let user: any = null;
try {