Firebase 3 - sends only a password reset link and no code - ionic-framework

Does Firebase 3 no longer send a reset code with the sendPasswordResetEmail() method? I am only seeing a reset link in the email.

Firebase has expressed interest in supporting sending code in addition to link for password reset. However there is no timeline when that will be ready.
One thing you can do is to create your own password reset landing page and parse the code from the url and display it to the user to copy into your app. I am guessing you are using a single page app and that is why you are interested in getting the code directly. Check the documentation for more on how to create your custom landing page.
https://firebase.google.com/docs/auth/custom-email-handler

Related

How to not show the Sign In page again if the user is already signed in in Flutter (Dart) and Firebase

I want to create a Sign in/Log in Page (with Google), but all the tutorials and videos only show how to log in and each time you open the app it asks you to log in. The desired way I want to have it is that If you are already logged in the sign in page shouldn't appear and if you are not signed in or the session has expired then the sign in page should ask you again. Can anyone help with this seeing as it's my first time working with Firebase and the Sign in function.
I have watched around 20 Youtube Videos and tried ChatGPT, but NO video shows you how to not make the page appear again if you are signed in or not. I tried writing an 'if' statement but my code was wonky and didn't work properly. I searched a lot of other places too but it's crazy that no one shows you how to do this -_-. If anyone knows some sort of documentation or a video that does show watchers how to do the desired effect please link it below or please share your code if you have successfully done this before. Much appreciated!
To have your app respond to the authentication state, you'll want to implement an authentication state listener like the one shown in the first snippet in the Firebase documentation on getting the current user.
Instead of calling listen, you can set the authStateChanges() as the stream for a StreamBuilder in your widget's build method.
Also see:
How to use .currentUser method in flutter (which includes a full code sample)
How Can I Get user id in Flutter with Firebase Authentication?

before and after login view

since I'm super new to Flutter, what is it called when you have some access to the application before login, but after login you have access to whole app.
if you don't get what I'm saying, I try to explain in some examples.
When I download an app from AppStore, Google Play.
I can take a look at some part like main UI and other stuff in main page.
but for section, pages and etc..., I need to login to see them.
it shows some property before login and others after login.
what is it called and what is the best recommendation to work with in Flutter?
Many thanks for your time
I think you mean authorization, check this for example Get Started with Flutter Authentication

New Twitter update authentication

I'm making a twitter app on iOS using their api. But they just recently upgraded everything dealing with authentication. Therefore breaking The Swifter library that I am using. My app was working fine before this update. In my apps.twitter.com In the setting section, the first callback url I have is http://MyTweeter ...It wants to me to add another callback, idk why/what so I just added http://google.com. In my app when I call the authentication function, it starts to authenticate and goes to the twitter login page and right after I click the login button it shows me the error in the pic attached below "Safari cannot open the page because the server cannot be found". Does any one have a solution?
So i found the solution. In you app, in the authentication function, your callback url should be something like MyTwitter://success but in apps.twitter.com you have to make it MyTwitter:// without the second part

ionic 3 deeplinking for reset password

I am creating a mobile application using ionic 3. I need to know the logic to implement reset password functionality. till now, i am able to send an email with reset token to the user.
I was thinking that id user clicks on the link in the email, if app is installed then it should open the application page dedicated for reset password.
So i did a little research and found that it can be done using DeepLinking ( custom url to respond) like myApp://resetPassword/{token}
Now the problem is in gmail when you send link with custom url, it removes the href option.
Can some one tell me slight information to implement this functionality and some articles to read.
Thanks,
I found this issue https://github.com/EddyVerbruggen/Custom-URL-scheme/issues/81 concerning this href removal in gmail.
They recommend - just as user1027620 - to create a regular html page and use JavaScript redirection to do the trick.
I guess you will indeed need JavaScript to get the arguments (unique token...) from the url and copy them in the myApp://resetPassword url.

Webpage is not Available - Facebook Login Integration

I want to integrate facebook api to help in the registration process in my website. It was working fine before - the standard fb login button appears, the pop-up window to login to fb was working, some of the user data are obtained. However after several trials with me modifying the code as the feature isnt fully integrated yet in my site, whenever I press the login button what replaces the fb login page is "This webpage is not available." I already retracted the modifications I made to the point that it was back to the version wherein it was working before. I also created another app and replaced the app id and secret key, still it displays the same message. I do not know what is wrong. Please help.
Update:
I uploaded the project files to another hosting site and it works! Could it be that the previous domain is now blocked?
Please read the other posts, dude... we're all waiting for the FB to fix the issue...