doct-ui-auth-kit 1.0.16 → 1.0.17

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.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -7017,7 +7017,7 @@ function e1({
7017
7017
  if (i.userType === "FOREIGN") {
7018
7018
  const c = (f.email ?? "").trim(), $ = qt(f.phone, f.countryCode);
7019
7019
  if ($) {
7020
- const g = i.pendingEmail || i.identifierValue || "";
7020
+ const g = c || i.pendingEmail || (i.identifierType === "email" ? i.identifierValue : "") || "";
7021
7021
  if (!g) {
7022
7022
  s({
7023
7023
  code: "UNKNOWN",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "doct-ui-auth-kit",
3
- "version": "1.0.16",
3
+ "version": "1.0.17",
4
4
  "description": "Composable React auth SDK – layouts, login/signup/OTP pages, SSO provider, and auth flow hooks for Docthub",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",