可用的 Node Modules
Authing SDK for Node.js
async function pipe(user, context, callback) {
if (!user.email.endsWith('@authing.cn')) {
return callback(null, user, context)
}
try {
await authing.authz.addUserToGroup({
userId: user._id,
groupId: env.ROOT_GROUP_ID
})
} catch (error) { }
callback(null, user, context)
}网络请求库
lodash
内置工具集 utils
检查 IP 是否位于 IP 段内
其他 Node 自带 Module
Last updated
Was this helpful?