Signal API updates
This commit is contained in:
parent
83653ef23b
commit
c729a46a0c
25 changed files with 501 additions and 279 deletions
|
|
@ -6,7 +6,7 @@ const getQRCode = async (token: string) => {
|
|||
const result = await fetch(url, { cache: "no-store" });
|
||||
const { qr } = await result.json();
|
||||
|
||||
return qr ?? "";
|
||||
return { qr, kind: "data" };
|
||||
};
|
||||
|
||||
export const whatsappConfig: ServiceConfig = {
|
||||
|
|
@ -73,8 +73,8 @@ export const whatsappConfig: ServiceConfig = {
|
|||
label: "QR Code",
|
||||
kind: "qrcode",
|
||||
size: 4,
|
||||
getValue: getQRCode,
|
||||
helperText: "Go ahead, scan it",
|
||||
getQRCode,
|
||||
helperText: "Go to link devices in the app, then scan the code",
|
||||
refreshInterval: 15,
|
||||
},
|
||||
],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue