Prettier format pending files
This commit is contained in:
parent
5ef02bc628
commit
0a9e6167e1
2 changed files with 16 additions and 11 deletions
|
|
@ -28,14 +28,11 @@ export default async function handler(req: VercelRequest, res: VercelResponse) {
|
|||
const supabaseServiceRole = process.env.SUPABASE_SERVICE_ROLE;
|
||||
|
||||
if (!supabaseUrl || !supabaseAnonKey || !supabaseServiceRole) {
|
||||
console.error(
|
||||
"[Discord Create Session] Missing environment variables:",
|
||||
{
|
||||
supabaseUrl: !!supabaseUrl,
|
||||
supabaseAnonKey: !!supabaseAnonKey,
|
||||
supabaseServiceRole: !!supabaseServiceRole,
|
||||
},
|
||||
);
|
||||
console.error("[Discord Create Session] Missing environment variables:", {
|
||||
supabaseUrl: !!supabaseUrl,
|
||||
supabaseAnonKey: !!supabaseAnonKey,
|
||||
supabaseServiceRole: !!supabaseServiceRole,
|
||||
});
|
||||
return res.status(500).json({ error: "Server configuration error" });
|
||||
}
|
||||
|
||||
|
|
@ -75,7 +72,9 @@ export default async function handler(req: VercelRequest, res: VercelResponse) {
|
|||
"[Discord Create Session] Failed to create session:",
|
||||
createError,
|
||||
);
|
||||
return res.status(500).json({ error: "Failed to create linking session" });
|
||||
return res
|
||||
.status(500)
|
||||
.json({ error: "Failed to create linking session" });
|
||||
}
|
||||
|
||||
console.log("[Discord Create Session] Session created for user:", userId);
|
||||
|
|
|
|||
|
|
@ -413,7 +413,10 @@ export default function Login() {
|
|||
variant="outline"
|
||||
className="w-full hover-lift interactive-scale border-border/50 hover:border-purple-500/50 hover:bg-purple-500/10 transition-all duration-200"
|
||||
onClick={() => {
|
||||
const u = new URL("/api/roblox/oauth/start", API_BASE);
|
||||
const u = new URL(
|
||||
"/api/roblox/oauth/start",
|
||||
API_BASE,
|
||||
);
|
||||
const next = new URLSearchParams(
|
||||
window.location.search,
|
||||
).get("next");
|
||||
|
|
@ -430,7 +433,10 @@ export default function Login() {
|
|||
variant="outline"
|
||||
className="w-full hover-lift interactive-scale border-border/50 hover:border-indigo-500/50 hover:bg-indigo-500/10 transition-all duration-200"
|
||||
onClick={() => {
|
||||
const u = new URL("/api/discord/oauth/start", API_BASE);
|
||||
const u = new URL(
|
||||
"/api/discord/oauth/start",
|
||||
API_BASE,
|
||||
);
|
||||
const next = new URLSearchParams(
|
||||
window.location.search,
|
||||
).get("next");
|
||||
|
|
|
|||
Loading…
Reference in a new issue