mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 11:06:40 +07:00
fixed config paths
This commit is contained in:
parent
9c0038f0a3
commit
bf1b92fdf1
18 changed files with 92 additions and 124 deletions
|
@ -2,7 +2,7 @@ const { User } = require('../../../models');
|
|||
const axios = require('axios');
|
||||
const { generateUser } = require('../guest');
|
||||
const { STRINGS } = require('../../../config/strings');
|
||||
const { SOCIAL } = require('../../../config/social');
|
||||
const { CONFIG } = require('../../../../config/backend');
|
||||
|
||||
const fetchUserData = async (req, res) => {
|
||||
const { query: { code } } = req;
|
||||
|
@ -12,8 +12,8 @@ const fetchUserData = async (req, res) => {
|
|||
'https://oauth.vk.com/access_token',
|
||||
{
|
||||
params: {
|
||||
client_id: SOCIAL.VK.client_id,
|
||||
client_secret: SOCIAL.VK.client_secret,
|
||||
client_id: CONFIG.SOCIAL.VK.APP_ID,
|
||||
client_secret: CONFIG.SOCIAL.VK.SECRET,
|
||||
code,
|
||||
redirect_uri: `http://${host}/auth/social/vk`,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue