Skip to content

code4fukui/UserManager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UserManager

ファイルベースのユーザー管理

API

const um = await UserManager.create();
  • async isAllowed(pubkey) 許可チェック

  • async add(pubkey, name, secret) ユーザー追加

  • async getRequestUsers() 許可待ちユーザー取得

  • async getAllowedUsers() 許可済みユーザー取得

  • async allow(pubkey) 許可

  • async reject(pubkey) 拒否

  • async remove(pubkey) 許可済みユーザーの削除

test

deno test --allow-read=./data/ --allow-write=./data/ --allow-import

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published