mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 19:16:41 +07:00
auth: added backend debugging x5
This commit is contained in:
parent
b5772bd33d
commit
07c457a31c
2 changed files with 26 additions and 9 deletions
|
@ -32,7 +32,19 @@ export const postMap = ({
|
|||
logo,
|
||||
distance,
|
||||
}).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);
|
||||
|
||||
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);
|
||||
export const getVkUserInfo = ({ user_id, access_token }) => (axios.get(
|
||||
'http://api.vk.com/method/users.get',
|
||||
{
|
||||
params: {
|
||||
user_id,
|
||||
fields: 'photo',
|
||||
v: '5.67',
|
||||
access_token,
|
||||
}
|
||||
}
|
||||
));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue