firebase-authentication

How to make Firebase authentication work completely without Identity Toolkit API

£可爱£侵袭症+ 提交于 2020-01-04 05:25:11
问题 I'm trying to create email password account using Firebase in Android project. I have added Firebase using the Android Studio's Firebase Assistant. The create user code is as follows. mAuth.createUserWithEmailAndPassword(email, password) .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() { @Override public void onComplete(@NonNull Task<AuthResult> task) { if (task.isSuccessful()) { FirebaseUser user = mAuth.getCurrentUser(); onLoginUpdateUI(user); } else { System.err.println(

Firebase custom auth issue token different audience

≯℡__Kan透↙ 提交于 2020-01-04 04:54:29
问题 Tried following the instructions here:https://firebase.google.com/docs/auth/server/create-custom-tokens to create a firebase custom token and on the server and then trying to sign in to firebase through the iOS SDK but getting this message with the custom token "The custom token corresponds to a different audience." I am trying this use the node sdk, also tried the php route creating the token with third party jwt library. Is this broken in firebase 3.0? 回答1: It's likely that the service

Firebase Google Sign-In will not work (Android)

你离开我真会死。 提交于 2020-01-04 02:07:13
问题 So I was originally trying to add Firebase Authentication Google Sign-in to my app. When that didn't work out, I decided to just try Firebase's official Quickstart app. I downloaded it, imported it into Android Studio and followed all their directions. It still won't work. What happens is I'll click the " Sign in " button, a dialog will come up where I select my profile, and then just nothing. Debugging, I've found that the onActivityResult result.isSuccess() method returns false, and I don't

how to pass firestore auth token using flutter cloud_firestore package

情到浓时终转凉″ 提交于 2020-01-04 01:53:11
问题 I am using firebase auth REST api to do authentication; this part works fine as I can log in/sign up users and I can get a uid and auth token back. When trying to write to cloud firestore, if I set my Cloud Firestore database rule to (which is one of the most basic auth rules): service cloud.firestore { match /databases/{database}/documents { match /{document=**} { allow read, write: if request.auth.uid != null; } } } But how to pass in the uid to the a cloud firestore request using cloud

Supertypes of the following classes cannot be resolved

心已入冬 提交于 2020-01-03 20:58:18
问题 I have android app in kotlin which is giving me this error. Error: Supertypes of the following classes cannot be resolved. Please make sure you have the required dependencies in the classpath: class com.google.firebase.auth.FirebaseAuth, unresolved supertypes: com.google.android.gms.internal.aad and this Error:Execution failed for task ':app:compileDebugKotlin'. Compilation error. See log for more details this is my app module apply plugin: 'com.android.application' apply plugin: 'kotlin

Updated approach to Reauthenticate a user

不问归期 提交于 2020-01-03 19:58:12
问题 I've been looking in the Firebase Documentation and found the method to reauthenticate a user shown below. let user = Auth.auth().currentUser var credential: AuthCredential // Prompt the user to re-provide their sign-in credentials user?.reauthenticate(with: credential) { error in if let error = error { // An error happened. } else { // User re-authenticated. } } I get an error and a warning though from the compiler as follows: Error: Variable 'credential' used before being initialized

Email not being Verified in Firebase

混江龙づ霸主 提交于 2020-01-03 17:33:09
问题 I am using Firebase's isEmailVerified method to verify an email. The following is the code: protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_verifying); FirebaseUser user = FirebaseAuth.getInstance().getCurrentUser(); mAuth=FirebaseAuth.getInstance(); spinner=(ProgressBar)findViewById(R.id.progressBar); spinner.setVisibility(View.GONE); Log.e("I am launched","hello"); if(user.isEmailVerified()==true){ Log.e("I am here",

Custom scheme URIs are not allowed for 'Web' client type - Google with Firebase

折月煮酒 提交于 2020-01-03 17:11:20
问题 I am trying to implement google sign in using firebase in to my iOS app. I follow this tutorial. https://firebase.google.com/docs/auth/ios/google-signin I have setup the iOS app in firebase and use the google clientID and reversedClientID from the dowloaded GoogleService-Info.plist. FYI: I have a custom sign-in button instead of the google sign in button. Anyway when i click the sign in button, google following error display in a webview. I know my problem is the same as which described in

Firebase Auth Inivite Only Scheme : How to communicate the credentials to user?

雨燕双飞 提交于 2020-01-03 15:36:49
问题 Here's my question. To access our app, the users must be invited . This means, we use an admin web app to create the user account in Firebase and we send him an invite to download the app and use it. Now the next phase, how can we send to the newly created user his credentials? Our first idea was to use a temporary password. We could send the password by email to the user and ask him to redefine his password at his first logging. His this a good idea? I guess it's not Is there a better way?

Firebase Auth Inivite Only Scheme : How to communicate the credentials to user?

流过昼夜 提交于 2020-01-03 15:36:11
问题 Here's my question. To access our app, the users must be invited . This means, we use an admin web app to create the user account in Firebase and we send him an invite to download the app and use it. Now the next phase, how can we send to the newly created user his credentials? Our first idea was to use a temporary password. We could send the password by email to the user and ask him to redefine his password at his first logging. His this a good idea? I guess it's not Is there a better way?