auth: added login through vk iframe

This commit is contained in:
muerwre 2018-12-10 13:00:44 +07:00
parent 678f2b17a4
commit 9427866e60
5 changed files with 75 additions and 3 deletions

View file

@ -31,4 +31,8 @@ export const postMap = ({
force,
logo,
distance,
}).then(result => (result && result.data && result.data));
}).then(result => (result && result.data && result.data)).catch(() => null);
export const getVkIframeUser = ({ viewer_id: user_id, access_token }) => (axios.get(API.VK_IFRAME_AUTH, {
params: { user_id, access_token }
}).then(result => (result && result.data))).catch(() => null);