Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
Use arrow function
  • Loading branch information
mrp14 authored Mar 24, 2017
1 parent 59a95f9 commit 5a0a41c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion instagram-auth/functions/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ function createFirebaseAccount(instagramID, displayName, photoURL, accessToken)
// Wait for all async task to complete then generate and return a custom auth token.
return Promise.all([userCreationTask, databaseTask]).then(() => {
// Create a Firebase custom auth token.
return admin.auth().createCustomToken(uid).then(function (token) {
return admin.auth().createCustomToken(uid).then((token) => {
console.log('Created Custom token for UID "', uid, '" Token:', token);
return token;
});
Expand Down

0 comments on commit 5a0a41c

Please sign in to comment.