mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 19:16:41 +07:00
auth: login through vk iframe
This commit is contained in:
parent
28dc2bec8b
commit
75505656df
6 changed files with 39 additions and 7 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue