DE
Size: a a a
DE
кз
DE
кз
DE
DE
кз
DE
кз
const responseFacebook = (response) => {
console.log(response);
if (response) {
const token = JSON.stringify(response);
const protocolUrl = `someProtocol://signin/fb/${encodeURI(token)}`;
window.open(protocolUrl);
window.close();
}
};
let actualCommands = cmd.replace('someProtocol://', '');
actualCommands = actualCommands.split('/');
const socialPath = actualCommands[0];
const token = JSON.parse(decodeURI(actualCommands[1]));
if (socialPath === 'fb') {
console.log('Facebook token:');
} else if (socialPath === 'gg') {
console.log('Google token:');
}
console.log(token);
S
const responseFacebook = (response) => {
console.log(response);
if (response) {
const token = JSON.stringify(response);
const protocolUrl = `someProtocol://signin/fb/${encodeURI(token)}`;
window.open(protocolUrl);
window.close();
}
};
let actualCommands = cmd.replace('someProtocol://', '');
actualCommands = actualCommands.split('/');
const socialPath = actualCommands[0];
const token = JSON.parse(decodeURI(actualCommands[1]));
if (socialPath === 'fb') {
console.log('Facebook token:');
} else if (socialPath === 'gg') {
console.log('Google token:');
}
console.log(token);
S
const responseFacebook = (response) => {
console.log(response);
if (response) {
const token = JSON.stringify(response);
const protocolUrl = `someProtocol://signin/fb/${encodeURI(token)}`;
window.open(protocolUrl);
window.close();
}
};
let actualCommands = cmd.replace('someProtocol://', '');
actualCommands = actualCommands.split('/');
const socialPath = actualCommands[0];
const token = JSON.parse(decodeURI(actualCommands[1]));
if (socialPath === 'fb') {
console.log('Facebook token:');
} else if (socialPath === 'gg') {
console.log('Google token:');
}
console.log(token);
S
====================================================
DE
encodeURIComponent(`someProtocol://signin/fb/${token}`)
S
encodeURIComponent(`someProtocol://signin/fb/${token}`)
кз
кз
кз
кз
кз
кз