@djangocfg/api 2.1.134 → 2.1.136
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/dist/auth.cjs +1 -1
- package/dist/auth.cjs.map +1 -1
- package/dist/auth.mjs +1 -1
- package/dist/auth.mjs.map +1 -1
- package/package.json +2 -2
- package/src/auth/context/AuthContext.tsx +2 -2
package/dist/auth.mjs
CHANGED
|
@@ -6778,7 +6778,7 @@ var AuthProviderInternal = /* @__PURE__ */ __name(({ children, config }) => {
|
|
|
6778
6778
|
const verifyOTP = useCallback12(
|
|
6779
6779
|
async (identifier, otpCode, channel, sourceUrl, redirectUrl, skipRedirect) => {
|
|
6780
6780
|
try {
|
|
6781
|
-
const channelValue = channel === "phone" ? enums_exports.
|
|
6781
|
+
const channelValue = channel === "phone" ? enums_exports.OTPRequestRequestChannel.PHONE : enums_exports.OTPRequestRequestChannel.EMAIL;
|
|
6782
6782
|
const result = await accounts.verifyOTP({
|
|
6783
6783
|
identifier,
|
|
6784
6784
|
otp: otpCode,
|