Skip to content

Commit

Permalink
exposing env lmao
Browse files Browse the repository at this point in the history
  • Loading branch information
DTA32 committed Sep 26, 2023
1 parent 82a9c6f commit b6bd75d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/app/api/spotify/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@ const getNowPlaying = async () => {
export async function GET() {
const response = await getNowPlaying();
if (response.error?.status) {
return NextResponse.json({ error: response.error });
return NextResponse.json({
error: response.error,
refresh_token: refreshToken,
basic_auth: basicAuth,
});
}
if (response.is_playing === false) {
return NextResponse.json({ is_playing: false });
Expand Down

0 comments on commit b6bd75d

Please sign in to comment.