This commit is contained in:
WovenCoast 2023-04-17 14:17:29 +05:00
parent 5194afe08d
commit e7e2110586
No known key found for this signature in database
GPG Key ID: 0483193430BBC0FC

View File

@ -8,6 +8,7 @@
// import IframeLoader from "svelte-iframe-loader"; // import IframeLoader from "svelte-iframe-loader";
// const iframeSrc = "https://telegram.org/js/telegram-widget.js?22"; // const iframeSrc = "https://telegram.org/js/telegram-widget.js?22";
const apiDomain = 'https://honestyapi.sar.sh';
</script> </script>
<section> <section>
@ -35,7 +36,7 @@
requestAccess={true} requestAccess={true}
on:auth={async (auth) => { on:auth={async (auth) => {
console.log(auth.detail); console.log(auth.detail);
const login = await fetch('https://honestyapi.sar.sh/api/Auth/logIn', { const login = await fetch(apiDomain + '/api/Auth/logIn', {
method: 'POST', method: 'POST',
headers: { headers: {
'Content-Type': 'application/json' 'Content-Type': 'application/json'