Skip to content
This repository has been archived by the owner on May 22, 2022. It is now read-only.
/ deno-spotify Public archive

Access the Spotify API from a Deno CLI app.

License

Notifications You must be signed in to change notification settings

caminad/deno-spotify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deno Spotify

Access the Spotify API from a Deno CLI app. Uses the Authorization Code Flow with Proof Key for Code Exchange (PKCE):

The authorization code flow with PKCE is the best option for mobile and desktop applications where it is unsafe to store your client secret. It provides your app with an access token that can be refreshed. For further information about this flow, see IETF RFC-7636.

Usage

A test application is provided:

> deno run --allow-net https://raw.githubusercontent.com/DavidJones418/deno-spotify/main/spotify_pkce_client_test.ts
Continue authentication at http://localhost:49918
Access token is valid
Current user: {
  ...
}
Current user with refreshed token: {
  ...
}
Continue authentication at http://localhost:49918
Current user with scoped token: {
  ...
}

About

Access the Spotify API from a Deno CLI app.

Topics

Resources

License

Stars

Watchers

Forks