New:Microsoft Teams Notifications Are Now Available in Socket.Learn more
Get Started

data-authority-security

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

data-authority-security

data-authority-security

npmnpm
Version
0.0.4
Version published
Weekly downloads
2
-88.89%
Maintainers
1
Weekly downloads
 
Created
Source

项目结构

data-authority-security             主项目
    -- src
        -- auth                     鉴权
            -- classic.ts           classic鉴权
            -- oceanbase.ts         oceanbase鉴权
        -- consts                   枚举
        -- decorator                装饰器
        -- exception                异常
        -- utils                    工具函数
data-authority-security-test 模拟接口测试
    -- nodejs

使用教程

安装依赖包,已经在npm公服发布;后期会迁移到公司的私服

  npm i data-authority-security --save

环境变量配置

  # oceanbase url
  OCEANBASE_AUTH_HOST = 'http://oceanbase-url'
  # classic url
  CLASSIC_AUTH_HOST = 'http://classic-url'

tsconfig设置

  {
    "compilerOptions": {
      "experimentalDecorators": true
    }
  }

FAQs

Package last updated on 16 Feb 2023

Related posts