Meteor login service and accounts for Deezer
- Add the package to your Meteor application:
meteor add pyrax:meteor-accounts-deezer
- Configure your app in the Deezer developers backend - the redirect URL should be: http://<example.app>/_oauth/deezer
- Configure the service:
ServiceConfiguration.configurations.update(
{ 'service': 'deezer' },
{
$set: {
'clientId': '<application_ID>',
'secret': '<secret_key>',
}
},
{ upsert: true },
);
Now you can use the login-method on the client:
const options = {
requestPermissions: ['basic_access', 'email'], // default permissions
};
Meteor.loginWithDeezer(options, (err) => {
console.log(err || 'No error');
});
This project is licensed under the MIT License - see the LICENSE file for details.