🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

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.6
Version published
Weekly downloads
9
350%
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

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts