We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4ec0725 + b321b67 commit 57aaf20Copy full SHA for 57aaf20
packages/miniapp/src/Authing.ts
@@ -574,6 +574,10 @@ export class Authing {
574
return returnError(getPhoneError)
575
}
576
577
- return returnSuccess(getPhoneRes)
+ if (getPhoneRes.phone_info) {
578
+ return returnSuccess(getPhoneRes.phone_info)
579
+ }
580
+
581
+ return returnError(getPhoneRes)
582
583
packages/miniapp/src/types.ts
@@ -320,7 +320,7 @@ export interface NormalResponseData extends SimpleResponseData {
320
321
322
export interface GetUserPhoneResponseData {
323
- countryCode: string // '86'
+ countryCode: string // '+86'
324
phoneNumber: string
325
purePhoneNumber: string
326
watermark: {
0 commit comments