mirror of
https://github.com/20kaushik02/spotify-manager.git
synced 2026-01-25 06:04:05 +00:00
error handling robustness, logger corrections, better playlist-editable checking
This commit is contained in:
@@ -79,10 +79,10 @@ const callback: RequestHandler = async (req, res) => {
|
||||
Authorization: `Bearer ${req.session.accessToken}`,
|
||||
};
|
||||
} else {
|
||||
logger.error("login failed", { statusCode: tokenResponse.status });
|
||||
res
|
||||
.status(tokenResponse.status)
|
||||
.send({ message: "Error: Login failed" });
|
||||
logger.error("login failed", { statusCode: tokenResponse.status });
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user