chore: update seed script

This commit is contained in:
MTG2000
2022-08-07 18:17:56 +03:00
parent 28410541ed
commit 6718d6fc7b
6 changed files with 320 additions and 105 deletions

View File

@@ -56,8 +56,10 @@ function removeExpiredHashes() {
})
}
async function generateAuthUrl() {
const hostname = 'https://auth.bolt.fun/.netlify/functions/login';
const hostname = CONSTS.LNURL_AUTH_HOST ?? 'https://auth.bolt.fun/.netlify/functions/login';
const secret = await generateK1();
const hash = createHash(secret);
await addHash(hash)