mirror of
https://github.com/r-freeman/portfolio.git
synced 2025-04-19 12:24:46 +00:00
This commit is contained in:
parent
f2eecf06d3
commit
191705bf8b
@ -45,7 +45,12 @@ export const getCurrentlyPlaying = async () => {
|
||||
|
||||
|
||||
export const getRecentlyPlayed = async () => {
|
||||
try {
|
||||
const {access_token}: Response = await getAccessToken() as Response
|
||||
} catch(e) {
|
||||
console.error(e)
|
||||
return null
|
||||
}
|
||||
|
||||
return await fetch(SPOTIFY_RECENTLY_PLAYED, {
|
||||
headers: {
|
||||
|
Loading…
Reference in New Issue
Block a user