Skip to content

Commit ec53484

Browse files
committed
add Spotify auth provider
1 parent 2a1fb1b commit ec53484

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

lib/authProviders.js

+13-2
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,18 @@ export const authProviders = {
7373
client_id: [notEmpty],
7474
client_secret: [notEmpty]
7575
})
76-
}
76+
},
77+
'spotify': {
78+
auth_version: "2.0",
79+
authorize_url: 'https://accounts.spotify.com/authorize',
80+
api_url: 'https://api.spotify.com/',
81+
callback_url: ({app_name}) => `${app_name}://authorize`,
82+
83+
validate: validate({
84+
client_id: [notEmpty],
85+
client_secret: [notEmpty]
86+
})
87+
},
7788
}
7889

79-
export default authProviders;
90+
export default authProviders;

0 commit comments

Comments
 (0)