mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 11:06:40 +07:00
auth: added backend debugging x2
This commit is contained in:
parent
8ddd7d624a
commit
b882ceab42
1 changed files with 3 additions and 0 deletions
|
@ -20,6 +20,7 @@ const fetchUserData = async (req, res) => {
|
|||
res.send({ success: false, error: 'iframe auth failed' });
|
||||
});
|
||||
|
||||
console.log("RESULT!", result);
|
||||
const { data } = result;
|
||||
if (!data) {
|
||||
console.log('OOOPS!', result);
|
||||
|
@ -32,6 +33,8 @@ const fetchUserData = async (req, res) => {
|
|||
module.exports = async (req, res) => {
|
||||
const { response } = await fetchUserData(req, res);
|
||||
|
||||
console.log('RESP', response);
|
||||
|
||||
const {
|
||||
first_name = '', last_name = '', photo = '', id = ''
|
||||
} = response[0];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue