nativescript-cognito
by papmodern | v1.1.3-alpha
通过 NativeScript 在 android 和 ios 中使用 AWS Cognito 服务。Clouding 公司 http://clouding.ca
npm i --save nativescript-cognito

Nativescript-cognito

使用 NativeScript 消费 AWS Cognito 服务。Android 和 iOS Clouding 公司 http://clouding.ca

安装

描述您的插件安装步骤。理想情况下,它可能类似于

tns plugin add nativescript-cognito

用法

const cognito = new Cognito("Your user pool id", "your client id");

cognito.authenticate(username, password).then(token => ...)

cognito.signUp(username, password, {
name: "Name",
email: "Email",
phone: "Phone",
...
}).then(res => ...)

cognito.confirmRegistration(username, code).then(username => {})
...

许可证

MIT 许可证版权(c)2019