auth: login through vk iframe

This commit is contained in:
muerwre 2018-12-10 15:27:17 +07:00
parent 28dc2bec8b
commit 75505656df
6 changed files with 39 additions and 7 deletions

View file

@ -33,6 +33,6 @@ export const postMap = ({
distance,
}).then(result => (result && result.data && result.data));
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));
export const checkIframeToken = ({ viewer_id, auth_key }) => axios.get(API.IFRAME_LOGIN_VK, {
params: { viewer_id, auth_key }
}).then(result => (result && result.data && result.data.success && result.data.user)).catch(() => (false));