This commit is contained in:
2022-01-15 22:19:44 +01:00
parent d29e2d67b2
commit 7ba44adc33

View File

@@ -7,6 +7,7 @@ import { Artist, InternalPlayerResponse, PlayerResponse, SpotifyToken } from 'Ap
import Song from 'App/Models/Song'
export function getSpotifyAccount(): { access: string; refresh: string } {
console.log(`spot account : ${JSON.parse(readFileSync('spotify.json').toString())}`)
return JSON.parse(readFileSync('spotify.json').toString())
}
@@ -18,6 +19,7 @@ export function getAuthorizationURI(): string {
redirect_uri: `${Env.get('BASE_URL')}/spotify/callback`,
})
console.log('auth url : ' + `https://accounts.spotify.com/authorize?${query}`)
return `https://accounts.spotify.com/authorize?${query}`
}