phauthlayer

专为Lambda验证权限使用

Usage no npm install needed!

<script type="module">
  import phauthlayer from 'https://cdn.skypack.dev/phauthlayer';
</script>

README

Pharbers AWS Lambda Auth Layer

只适用于Pharbers公司逻辑的Auth验证逻辑

后续会考虑变为开源公用接口

使用说明

在AWS Lambda中添加该Layer即可使用权限验证接口

import {Errors2response, identify} from phauthlayer
// event为Lambda request
// scope为字符串
// flag为object
const flag = identify.identify(event, scope)
console.info(typeof flag)
console.info(flag)