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));