Skip to content

Commit

Permalink
fix: fetch facebook user data
Browse files Browse the repository at this point in the history
  • Loading branch information
WrathChaos committed Apr 27, 2022
1 parent 6368d10 commit 292af15
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions lib/facebook/FacebookHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ export const facebookLogin = async (
return { userCredential, accessToken: data.accessToken };
};

export const fetchFacebookUserData = (
export const fetchFacebookUserData = async (
accessToken: string,
): Promise<FacebookUserResponseData> =>
fetch(FACEBOOK_GRAPH_URL(accessToken)).then((response) => response.json());
await fetch(FACEBOOK_GRAPH_URL(accessToken)).then((response) =>
response.json(),
);
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-social-auth-helper",
"version": "1.0.3",
"version": "1.0.4",
"description": "All in one place for social authentication helper in React Native",
"main": "./build/dist/index.js",
"repository": "git@github.com:WrathChaos/react-native-social-auth-helper.git",
Expand Down

0 comments on commit 292af15

Please sign in to comment.