completionId: cgen-a2cb923349b24fce8c65221675ca6f6c
cgen-a2cb923349b24fce8c65221675ca6f6c
This commit is contained in:
parent
f3808714c1
commit
aeb43b494f
1 changed files with 2 additions and 4 deletions
|
|
@ -13,15 +13,13 @@ export default async function handler(req: VercelRequest, res: VercelResponse) {
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
console.log("[Passport] Initializing admin client...");
|
console.log("[Passport] Subdomain request for:", username);
|
||||||
const admin = getAdminClient();
|
const admin = getAdminClient();
|
||||||
console.log("[Passport] Admin client initialized successfully");
|
|
||||||
|
|
||||||
const userFields = `
|
const userFields = `
|
||||||
id,
|
id,
|
||||||
username,
|
username,
|
||||||
full_name,
|
full_name,
|
||||||
email,
|
|
||||||
bio,
|
bio,
|
||||||
avatar_url,
|
avatar_url,
|
||||||
banner_url,
|
banner_url,
|
||||||
|
|
@ -41,7 +39,7 @@ export default async function handler(req: VercelRequest, res: VercelResponse) {
|
||||||
updated_at
|
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;
|
let user: any = null;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue