Skip to content

Commit 7d290c3

Browse files
committed
Removed removeSpotifyToken button and function
1 parent d1dd989 commit 7d290c3

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

src/pages/Spotify.vue

-20
Original file line numberDiff line numberDiff line change
@@ -59,17 +59,6 @@
5959
<v-icon>mdi-spotify</v-icon>
6060
Log Out
6161
</v-btn>
62-
<!-- DEV FUNCTION: Invalidate token for easy 401 error testing -->
63-
<v-btn
64-
class="ml-1"
65-
outlined
66-
rounded
67-
text
68-
v-on:click="removeSpotifyToken()"
69-
>
70-
<v-icon>mdi-delete</v-icon>
71-
Remove token
72-
</v-btn>
7362
</v-card-actions>
7463
</v-card>
7564
</v-scale-transition>
@@ -2348,15 +2337,6 @@ export default {
23482337
router.replace("/Spotify").catch(()=>{})
23492338
router.go(0)
23502339
},
2351-
// Remove Spotify token (for test purposes only)
2352-
removeSpotifyToken(){
2353-
// DEV FUNCTION //
2354-
// TODO: Deactivate this & the button when no longer needed
2355-
// Remove access token
2356-
localStorage.setItem("spotify_access_token", "")
2357-
// Go to current location (to refresh/reload page)
2358-
router.go(0)
2359-
},
23602340
// Once access token expires, use refresh token to get a new one
23612341
refreshSpotifyToken(){
23622342
let baseUrl = this.serverBaseURL

0 commit comments

Comments
 (0)