// signUp
const { data, error } = await this._client.auth.signUp({
phone: mobile,
password: password,
});
// email sign in with otp
const { data, error } = await this._client.auth.signInWithOtp({
email: email,
options: {
shouldCreateUser: false,
},
});
// verify otp
const { data, error } = await this._client.auth.verifyOtp({
email: email,
token: code,
type: 'email',
});
// signUp
const { data, error } = await this._client.auth.signUp({
phone: mobile,
password: password,
});
// email sign in with otp
const { data, error } = await this._client.auth.signInWithOtp({
email: email,
options: {
shouldCreateUser: false,
},
});
// verify otp
const { data, error } = await this._client.auth.verifyOtp({
email: email,
token: code,
type: 'email',
});