护照-lnurl-auth
护照策略。
安装
通过npm添加到您的应用npm :
npm install passport-lnurl-auth --save
这将安装模块并将其添加到应用程序的package.json文件中。
用法
const LnurlAuth = require ( 'passport-lnurl-auth' ) ;
passport . use ( new LnurlAuth . Strategy ( function ( linkingPublicKey , done ) {
// The user has successfully authenticated using lnurl-auth.
// The linked public key is provided here.
// You can use this as a unique ref
1