We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tried to both solutions i found in here.
`his.auth.verifyPhoneNumber(phoneNumber, 120000).then(async verificationId => { if(verificationId){ loading.dismiss() const alert = await this.alertCtrl.create({ header: 'Verify phone number', message: 'Please provide the SMS code you received on your phone.', inputs: [ { name: 'code', type: 'tel', placeholder: 'SMS Code' }, ], buttons: [ { text: 'Cancel', role: 'cancel', cssClass: 'secondary',
handler: (blah) => { console.log('Confirm Cancel: blah'); } }, { text: 'Okay', handler: (data) => { loading.present() this.auth.signInWithVerificationId(verificationId, data.code).then(async res => { console.log(res); this.toast.show('Signed in') this.router.navigate(['home']) }) } } ] }); await alert.present(); } else { await loading.dismiss() this.router.navigate(['home', 'menu']) }
this.auth.onAuthStateChanged().subscribe(user => { if(user){ this.user.next(user) this.router.navigate(['home', 'menu']) } else{ this.user.next(null) this.router.navigate(['login']) } })`
The text was updated successfully, but these errors were encountered:
also tried to run it as a sync function got the same result
Sorry, something went wrong.
have you solved it?
No branches or pull requests
tried to both solutions i found in here.
`his.auth.verifyPhoneNumber(phoneNumber, 120000).then(async verificationId => {
if(verificationId){
loading.dismiss()
const alert = await this.alertCtrl.create({
header: 'Verify phone number',
message: 'Please provide the SMS code you received on your phone.',
inputs: [
{
name: 'code',
type: 'tel',
placeholder: 'SMS Code'
},
],
buttons: [
{
text: 'Cancel',
role: 'cancel',
cssClass: 'secondary',
this.auth.onAuthStateChanged().subscribe(user => {
if(user){
this.user.next(user)
this.router.navigate(['home', 'menu'])
} else{
this.user.next(null)
this.router.navigate(['login'])
}
})`
The text was updated successfully, but these errors were encountered: