Skip to content

Commit

Permalink
auto: format code
Browse files Browse the repository at this point in the history
  • Loading branch information
devin-ai-integration[bot] committed Dec 14, 2024
1 parent f4bbc3e commit 61265e7
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/openauth/src/adapter/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export * from "./code.js"
export type { Adapter } from "./adapter.js"
export * from "./spotify.js"
18 changes: 18 additions & 0 deletions packages/openauth/src/adapter/spotify.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { Oauth2Adapter, type Oauth2WrappedConfig } from "./oauth2.js"

export function SpotifyAdapter(config: Oauth2WrappedConfig) {
return Oauth2Adapter({
...config,
type: "spotify",
endpoint: {
authorization: "https://accounts.spotify.com/authorize",
token: "https://accounts.spotify.com/api/token",
},
scopes: [
"user-read-private",
"user-read-email",
"playlist-read-private",
"user-library-read",
],
})
}

0 comments on commit 61265e7

Please sign in to comment.