Mention slashtags auth in README
This also makes SLASHTAGS_SECRET optional. If none is set, random bytes will be generated. This is useful for local development.
This commit is contained in:
parent
0d0940069a
commit
c941c76292
|
@ -18,6 +18,9 @@ LOGIN_EMAIL_FROM=<YOUR FROM ALIAS>
|
|||
# lnurl-auth
|
||||
LNAUTH_URL=<YOUR PUBLIC TUNNEL TO LOCALHOST, e.g. NGROK>
|
||||
|
||||
# slashtags
|
||||
SLASHTAGS_SECRET=
|
||||
|
||||
#######################################################
|
||||
# LND / OPTIONAL #
|
||||
# if you want to work with payments you'll need these #
|
||||
|
|
|
@ -19,7 +19,7 @@ async function createProfile (slashtag) {
|
|||
|
||||
const slashtags = global.slashtags || (() => {
|
||||
console.log('initing slashtags')
|
||||
const sdk = new SDK({ primaryKey: Buffer.from(process.env.SLASHTAGS_SECRET, 'hex') })
|
||||
const sdk = new SDK({ primaryKey: process.env.SLASHTAGS_SECRET ? Buffer.from(process.env.SLASHTAGS_SECRET, 'hex') : undefined })
|
||||
|
||||
// Get the default slashtag
|
||||
const slashtag = sdk.slashtag()
|
||||
|
|
Loading…
Reference in New Issue