From 64ebd4760f2aa42021f92b541a66791697716b70 Mon Sep 17 00:00:00 2001 From: Xinran Xiao Date: Sat, 13 Jun 2015 16:45:30 -0400 Subject: [PATCH] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index cf359c3..ee246c2 100644 --- a/README.md +++ b/README.md @@ -30,8 +30,8 @@ var options = { showDialog: true, // Whether or not to force the user to approve the app again if they’ve already done so. requestPermissions: ['user-read-email'] // Spotify access scopes. }; -Meteor.loginWithSpotify(options, function(accessToken) { - console.log(accessToken); +Meteor.loginWithSpotify(options, function(err) { + console.log(err || "No error"); }); ``` The user's `services.spotify` and `profile` fields will be populated on success. If you just want the access token without user accounts being involved, check out [xinranxiao:spotify](https://github.com/xinranxiao/meteor-spotify).