@baxcloud/parse-server-baxverify 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -2
- package/package.json +4 -7
package/README.md
CHANGED
|
@@ -45,7 +45,7 @@ After BaxVerify `verifyOtp`, pass `result.externalAuth` to Parse:
|
|
|
45
45
|
await ParseUser.logInWith('baxverify', result.externalAuth!);
|
|
46
46
|
```
|
|
47
47
|
|
|
48
|
-
See [Flutter BaxVerify SDK](
|
|
48
|
+
See [Flutter BaxVerify SDK](https://pub.dev/packages/baxcloud_verify_sdk) and [BaxCloud docs](https://baxcloud.tech/docs/baxverify/sdk/flutter#parse-server).
|
|
49
49
|
|
|
50
50
|
## Configuration options
|
|
51
51
|
|
|
@@ -88,9 +88,15 @@ module.exports = createBaxVerifyParseAuth({
|
|
|
88
88
|
3. Client calls `ParseUser.logInWith('baxverify', { id: phone, token: accessToken })`.
|
|
89
89
|
4. This adapter calls BaxVerify `validateVerificationToken`, checks phone matches `authData.id`, and stores `{ phone }` on the Parse User.
|
|
90
90
|
|
|
91
|
+
## Error codes
|
|
92
|
+
|
|
93
|
+
Token validation calls the BaxVerify API. Failures return stable codes such as `BAXVERIFY_TOKEN_INVALID`, `BAXVERIFY_TOKEN_CONSUMED`, or `BAXVERIFY_FEATURE_DISABLED`, often with `details.helpUrl` pointing to the dashboard fix.
|
|
94
|
+
|
|
95
|
+
See [BaxVerify error codes](https://baxcloud.tech/docs/baxverify#error-codes).
|
|
96
|
+
|
|
91
97
|
## Related
|
|
92
98
|
|
|
93
|
-
- [@baxcloud/baxverify](
|
|
99
|
+
- [@baxcloud/baxverify](https://www.npmjs.com/package/@baxcloud/baxverify) — BaxVerify Node.js SDK
|
|
94
100
|
- [BaxVerify docs](https://baxcloud.tech/docs/baxverify)
|
|
95
101
|
|
|
96
102
|
## License
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@baxcloud/parse-server-baxverify",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Parse Server custom auth adapter for BaxVerify phone login (SMS OTP)",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -40,11 +40,8 @@
|
|
|
40
40
|
"node": ">=18.0.0"
|
|
41
41
|
},
|
|
42
42
|
"license": "MIT",
|
|
43
|
-
"
|
|
44
|
-
|
|
45
|
-
"url": "https://github.com/baxcloud/parse-server-baxverify",
|
|
46
|
-
"directory": "SDK/parse-server-baxverify"
|
|
47
|
-
},
|
|
43
|
+
"homepage": "https://baxcloud.tech/docs/baxverify/sdk/parse-server",
|
|
44
|
+
"bugs": "https://baxcloud.tech/contact",
|
|
48
45
|
"peerDependencies": {
|
|
49
46
|
"parse-server": ">=6.0.0"
|
|
50
47
|
},
|
|
@@ -54,7 +51,7 @@
|
|
|
54
51
|
}
|
|
55
52
|
},
|
|
56
53
|
"dependencies": {
|
|
57
|
-
"@baxcloud/baxverify": "^1.
|
|
54
|
+
"@baxcloud/baxverify": "^1.1.0"
|
|
58
55
|
},
|
|
59
56
|
"devDependencies": {
|
|
60
57
|
"@types/node": "^20.0.0",
|