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

Latest commit

 

History

History
34 lines (27 loc) · 1.02 KB

README.md

File metadata and controls

34 lines (27 loc) · 1.02 KB

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: {
  ...
}