From 28dc2bec8b30f966c365f3029e8f35b5e843731d Mon Sep 17 00:00:00 2001 From: muerwre Date: Mon, 10 Dec 2018 15:00:28 +0700 Subject: [PATCH] auth: api call (fixed) --- src/utils/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/api.js b/src/utils/api.js index 96a8004..46bf417 100644 --- a/src/utils/api.js +++ b/src/utils/api.js @@ -33,6 +33,6 @@ export const postMap = ({ distance, }).then(result => (result && result.data && result.data)); -export const checkIframeToken = ({ id, token }) => axios.get(API.IFRAME_LOGIN_VK, { +export const checkIframeToken = ({ viewer_id, access_token, auth_key }) => axios.get(API.IFRAME_LOGIN_VK, { params: { viewer_id, access_token, auth_key } }).then(result => (result && result.data));