verify code/otp
This commit is contained in:
@@ -132,7 +132,7 @@ function AuthProvider({ children }: AuthProviderProps) {
|
||||
|
||||
const validateOtp = async (phoneOrEmail: string, otp: string) =>
|
||||
axios
|
||||
.post('/verify-code', { otp })
|
||||
.post('/verify-code', { phoneOrEmail: phoneOrEmail, otp })
|
||||
.then((response) => {
|
||||
const { user, token } = response.data.data;
|
||||
setSession(token);
|
||||
|
||||
Reference in New Issue
Block a user