Skip to content

Instantly share code, notes, and snippets.

@M4GNV5
Last active April 11, 2023 22:01
Show Gist options
  • Save M4GNV5/bf544c9c18e9c38d5f4ed7f687aa756b to your computer and use it in GitHub Desktop.
Save M4GNV5/bf544c9c18e9c38d5f4ed7f687aa756b to your computer and use it in GitHub Desktop.
Bypass luca-app sms verify allowing users to test the app without a real phone number. Use responsibly
// Paste this into the js console of your browser whilst viewing the Luca webapp
(function() {
var originalFetch = fetch;
window.fetch = (url, options) => {
if(url === '/api//v3/sms/request') {
console.log('hooked fetch', url, options);
return Promise.resolve({
json: () => Promise.resolve({
challengeId: '00000000-0000-0000-0000-000000000000',
})
});
}
else if(url === '/api//v3/sms/verify') {
console.log('hooked fetch', url, options);
return Promise.resolve({
status: 204,
});
}
else {
return originalFetch(url, options);
}
};
})();
@M4GNV5
Copy link
Author

M4GNV5 commented Apr 29, 2021

I use it on my computer actually. Just for testing and researching with Luca. I wasn't forced to use Luca yet (staying home helps) and in the case someone actually enforces Luca there still is schmudo2go

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment