open-index/open-npm huggingface dataset:
npm package: @icancode/identity-cognito
Description: An identity module based on `@icancode/express` to integrate with AWS Cognito.
Author: Long Do
Latest version: 1.0.1

# icancode-identity-cognito

An identity module based on `@icancode/express` to integrate with AWS Cognito.

# How to use

- Add package as dependency

```bash
yarn add @icancode/identity-cognito
```

- Register the module

```typescript
import { ModuleLoader } from '@icancode/express';
import IdentityCognito from '@icancode/identity-cognito';

const loader = new ModuleLoader(app);
loader.register(IdentityCognito);
```

# Environment variables

## Mandatory

| Name                        | Description                 |
| --------------------------- | --------------------------- |
| COGNITO_ADMIN_CLIENT_ID     | Cognito admin client id     |
| COGNITO_ADMIN_CLIENT_SECRET | Cognito admin client secret |
| COGNITO_POOL_ID             | Cognito Pool id             |

## Use self-managed JWT

| Name            | Description                                                     |
| --------------- | --------------------------------------------------------------- |
| COGNITO_USE_JWT | Default is false. Enable self managed JWT token                 |
| JWT_RSA_KEY     | Path to RSA private key (use for self-managed JWT token)        |
| JWT_RSA_PUBLIC  | Path to RSA public key (use for self-managed JWT token)         |
| JWT_EXPIRES_IN  | Expiration of token in seconds (use for self-managed JWT token) |

## Enable social integration

| Name                  | Description                                         |
| --------------------- | --------------------------------------------------- |
| COGNITO_USE_PROVIDER  | Default is false. Enable social and custom provider |
| COGNITO_CLIENT_ID     | Cognito client id (use for exchanging token)        |
| COGNITO_CLIENT_SECRET | Cognito client secret (use for exchanging token)    |
| COGNITO_DOMAIN        | Cognito domain (use for exchanging token)           |
| COGNITO_REDIRECT_URI  | Cognito redirect uri (use for exchanging token)     |
npm package: @icanhascode/vite-plugin-insert-debug-constants
Description: A simple Vite plugin that inserts debug constants like, `__FILE__` and `__DIR__` (relative to `src` by default), into the code. Can be customized.
Author: Mara Morton
Latest version: 0.0.19

# vite-plugin-insert-debug-constants

A simple Vite plugin that inserts debug constants like, `__FILE__` and `__DIR__` (relative to `src` by default), into the code. Can be customized.
npm package: @icanvas/core
Description: 这是icanvas的核心包
Author: 潘丽敏
Latest version: 3.0.89

# **iCanvas核心构造器**
![npm](https://img.shields.io/npm/dm/@icanvas/core)

![NPM](https://img.shields.io/npm/l/@icanvas/core)

![npm](https://img.shields.io/npm/v/@icanvas/core) ![npm bundle size](https://img.shields.io/bundlephobia/min/@icanvas/core) ![GitHub top language](https://img.shields.io/github/languages/top/idler8/icanvas)
## 安装
```bash
    npm install -s @icanvas/core
```
## 调用
```javascript
    import * as ICanvas from '@icanvas/core';
    // OR
    const ICanvas = require('@icanvas/core');
```

## API列表

### 数学包
#### [基本向量](src/vector/vector.js)`ICanvas.Vector`
#### [二维向量](src/vector/vector2.js)`ICanvas.Vector2`
#### [三维矩阵](src/vector/matrix4.js)`ICanvas.Matrix4`
#### [三维矩阵](src/vector/color.js)`ICanvas.Color`

### 界面组件
#### [容器组件](src/components/container.js)`ICanvas.Container`
#### [场景管理容器组件](src/components/director.js)`ICanvas.Director`
#### [图片精灵组件](src/components/sprite.js)`ICanvas.Sprite`

### 工具包
#### [底层扩展](src/utils/polyfill.js)`ICanvas.Polyfill`
#### [随机函数](src/utils/random.js)`ICanvas.Random`
#### [界面组件碰撞检测类](src/utils/collision.js)`ICanvas.Collision`
#### [触摸事件统一处理类](src/utils/touch.js)`ICanvas.Touch`
#### [时钟步进类](src/utils/clock.js)`ICanvas.Clock`
#### [事件监听类](src/utils/event.js)`ICanvas.Event`
#### [脏检查器类](src/utils/dirty.js)`ICanvas.Dirty`
#### [动画类](src/utils/animation.js)`ICanvas.Animation`

### 资源管理
#### [图片管理器](src/resource.js)`ICanvas.ImageLoader`
#### [音频管理器](src/resource.js)`ICanvas.AudioLoader`
#### [图片资源类](src/resource.js)`ICanvas.ImageSource`
#### [音频资源类](src/resource.js)`ICanvas.AudioSource`
#### [资源加载器](src/resource.js)`ICanvas.Loader`

### 渲染器
#### [Canvas2D渲染器](src/canvas/render.js)`ICanvas.CanvasRender`
#### [Webgl渲染器](src/webgl/render.js)`ICanvas.WebGLRender`
#### [Webgl默认着色器](src/webgl/shader.js)`ICanvas.WebGLShader`
npm package: @icanvas/core-web
Description: 这是icanvas的Web扩展
Author: 潘丽敏
Latest version: 1.0.6

# **iCanvas-Web扩展**
![npm](https://img.shields.io/npm/dm/@icanvas/core-web) ![NPM](https://img.shields.io/npm/l/@icanvas/core-web) ![npm](https://img.shields.io/npm/v/@icanvas/core-web) ![npm bundle size](https://img.shields.io/bundlephobia/min/@icanvas/core-web)
## 安装
```bash
    npm install -s @icanvas/core-web
```
## 调用
### umd/es6
es6调用完整支持Tree Shake
```javascript
    import * as ICanvas from '@icanvas/core';
    import * as ICanvasWeb from '@icanvas/core-web';
    // OR
    const ICanvas = require('@icanvas/core');
    const ICanvasWeb = require('@icanvas/core-web');
```

## API列表

### 资源加载包
#### [浏览器图片资源管理器构造函数](src/resources/lib/image.js#L25)`ICanvasWeb.ResourceImage`
#### [浏览器音频资源管理器构造函数](src/resources/lib/audio.js#L70)`ICanvasWeb.ResourceAudio`

### 特性包
#### [浏览器生成Canvas方法](src/apis/wxgame/canvas.js)`ICanvasWeb.ApiCanvas`
#### [浏览器获取系统属性方法](src/apis/wxgame/system.js)`ICanvasWeb.ApiSystem`
#### [浏览器自定义字体加载函数](src/wxgame/font.js)`ICanvas.ApiFont`
#### [浏览器触摸监听传递](src/wxgame/touch.js)`ICanvas.ApiTouch`
npm package: @icanvas/core-wxgame
Description: 这是icanvas的核心包
Author: 潘丽敏
Latest version: 1.1.0

# **iCanvas核心构造器**
![npm](https://img.shields.io/npm/dm/@icanvas/core-wxgame) ![NPM](https://img.shields.io/npm/l/@icanvas/core-wxgame) ![npm](https://img.shields.io/npm/v/@icanvas/core-wxgame) ![npm bundle size](https://img.shields.io/bundlephobia/min/@icanvas/core-wxgame)
## 安装
```bash
    npm install -s @icanvas/core-wxgame
```
## 调用
### umd/es6
es6调用完整支持Tree Shake
```javascript
    import * as ICanvas from '@icanvas/core';
    import * as ICanvasWxgame from '@icanvas/core-wxgame';
    // OR
    const ICanvas = require('@icanvas/core');
    const ICanvasWxgame = require('@icanvas/core-wxgame');
```

## API列表

### 资源加载包
#### [微信图片资源管理器构造函数](src/resources/lib/image.js#L25)`ICanvasWxgame.ResourceImage`
#### [微信音频资源管理器构造函数](src/resources/lib/audio.js#L70)`ICanvasWxgame.ResourceAudio`

### 特性包
#### [微信生成Canvas方法](src/apis/wxgame/canvas.js)`ICanvasWxgame.ApiCanvas`
#### [微信获取系统属性方法](src/apis/wxgame/system.js)`ICanvasWxgame.ApiSystem`
#### [微信网络请求类](src/apis/wxgame/request.js)`ICanvasWxgame.ApiRequest`
#### [微信登陆工厂方法](src/apis/wxgame/login.js)`ICanvasWxgame.ApiLogin`
#### [微信触摸监听传递](src/utils/index.js)`ICanvas.ApiTouch`

### 工具包
#### [微信方法变种工厂](src/utils/index.js)`ICanvas.UtilVary`