Comments (6)
from authing-js-sdk.
@qianfeiqianlan 这个接口应该是不需要返回值的,HttpClient 对 code 不为 200 的 response 做了统一的异常处理:https://github.com/Authing/authing.js/blob/master/src/lib/common/HttpClient.ts#L44
from authing-js-sdk.
@liaochangjiang 我参考了这个文档 使用手机验证码登录,但是当我调用SDK发送短信验证码的时候,得到的返回值是undefined,跟踪代码到了issue链接的那个地方,看到data的值是对的,但返回的是data.data
目前我这边的issue表现就是,调用了sendSmsCode,但是返回值为undefined,并没又得到 { code: 200, message: '发送成功' }
from authing-js-sdk.
@qianfeiqianlan 你给的这个文档是老版本 SDK 的(顺便好奇一下你是在哪找到这个文档的入口的呢),最新的文档在 发送短信验证码 。
新版 SDK 的异常处理方式做了更新,对于 code
不为 200
的请求做了抛错处理,开发者可以通过 try/catch
来判断操作是否成功,详情请见 错误处理方式 。
from authing-js-sdk.
@liaochangjiang 好的好的,我就是从官网找到的,然后用起来发现不太对劲🤣
from authing-js-sdk.
@qianfeiqianlan 好的 🤣 我们更新下官网的文档链接
from authing-js-sdk.
Related Issues (20)
- Please add `package-lock.json` in .gitignore HOT 1
- Missing interface to query loginHistory and loginLocation HOT 1
- Issue: Module not found: Error: Can't resolve 'jsbn' HOT 2
- 无法替换 应用图标 HOT 1
- 支持使用 accessToken 获取用户信息
- 我想玩家每次操作接口的时候更新token的exp时间是哪个方法 HOT 5
- 执行错误 HOT 3
- Any plan to add typescript support? HOT 1
- test lark
- Add handlers for OAuth 2.0 and OIDC processes
- Add sdk for Authing Pipeline
- Add SDK For Scan QRCode Login
- Identities 未返回 HOT 1
- navigator问题建议 HOT 3
- 多次删除同一个用户或者删除一个不存在的用户 HOT 1
- customData定义不一致
- 'connect-src' was not explicitly set , so Refused to connect to 'https://tiddlygit-desktop.authing.cn HOT 1
- 返回errors的结构体多变 HOT 4
- High vulnerabilities need to be resolved into dependant packages
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from authing-js-sdk.