Skip to content

Commit

Permalink
feat(applemusic): remove debug steps
Browse files Browse the repository at this point in the history
  • Loading branch information
netlob committed Oct 24, 2023
1 parent 2416bb4 commit b6b5e58
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/Login/LoginAppleMusicButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,18 @@ export const LoginAppleMusicButton = () => {
const music = MusicKit.getInstance();
const MUT = await music.authorize();
// eslint-disable-next-line no-console
console.log(await music.api.album(1025210938));
// console.log(await music.api.album(1025210938));
// eslint-disable-next-line no-alert
alert('please dismiss this test popup');
const meData = await api.http.put('/auth/appleMusic', {
// alert('please dismiss this test popup');
await api.http.put('/auth/appleMusic', {
body: JSON.stringify({
userToken: MUT,
idToken: id_token,
}),
authRequired: true,
});
// eslint-disable-next-line no-alert
alert(`token sent 👍\n${JSON.stringify(meData, null, 2)}`);
// alert(`token sent 👍\n${JSON.stringify(meData, null, 2)}`);

// if (added) {
router.push(`/${auth.user?.id}`);
Expand Down

0 comments on commit b6b5e58

Please sign in to comment.