@koolbase/react-native 12.1.0 → 12.2.0
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/CHANGELOG.md +15 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,21 @@ adheres to [Semantic Versioning][semver].
|
|
|
7
7
|
[kac]: https://keepachangelog.com/en/1.1.0/
|
|
8
8
|
[semver]: https://semver.org/
|
|
9
9
|
|
|
10
|
+
## 12.2.0
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- **Two-step sign-in (MFA).** Every sign-in method now throws `MfaRequiredError`
|
|
15
|
+
carrying a `challengeToken` when the person's account has an authenticator on
|
|
16
|
+
— including phone, Google and Apple, whose error parsers all map it, enforced
|
|
17
|
+
by a source test for any parser added later. `verifyMfa({ challengeToken, code
|
|
18
|
+
})` and `verifyRecoveryCode({ challengeToken, code })` finish sign-in and
|
|
19
|
+
store the session, returning `{ session, recoveryCodesRemaining }` for the
|
|
20
|
+
latter.
|
|
21
|
+
- `enrollMfa()`, `confirmMfaEnrollment(code)`, `mfaStatus()`, `stepUpMfa(…)`,
|
|
22
|
+
`disableMfa()`, and `regenerateRecoveryCodes()` manage it. Six new error
|
|
23
|
+
classes in the mapping table and fidelity list.
|
|
24
|
+
|
|
10
25
|
## 12.1.0
|
|
11
26
|
|
|
12
27
|
### Added
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@koolbase/react-native",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.2.0",
|
|
4
4
|
"description": "React Native SDK for Koolbase \u2014 auth, database, storage, realtime, feature flags, and functions in one package.",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"types": "./dist/esm/index.d.ts",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"url": "https://github.com/koolbase/koolbase-react-native"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@koolbase/core": "12.
|
|
27
|
+
"@koolbase/core": "12.2.0"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"@react-native-async-storage/async-storage": "^3.0.2",
|