@djangocfg/api 2.1.135 → 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.cjs
CHANGED
|
@@ -6829,7 +6829,7 @@ var AuthProviderInternal = /* @__PURE__ */ __name(({ children, config }) => {
|
|
|
6829
6829
|
const verifyOTP = (0, import_react17.useCallback)(
|
|
6830
6830
|
async (identifier, otpCode, channel, sourceUrl, redirectUrl, skipRedirect) => {
|
|
6831
6831
|
try {
|
|
6832
|
-
const channelValue = channel === "phone" ? enums_exports.
|
|
6832
|
+
const channelValue = channel === "phone" ? enums_exports.OTPRequestRequestChannel.PHONE : enums_exports.OTPRequestRequestChannel.EMAIL;
|
|
6833
6833
|
const result = await accounts.verifyOTP({
|
|
6834
6834
|
identifier,
|
|
6835
6835
|
otp: otpCode,
|