firebase-authentication

Can FirebaseAuth 5.0.x be used in an iOS app extension?

流过昼夜 提交于 2019-12-12 12:55:32
问题 FirebaseAuth uses [UIApplication sharedApplication] in FIRAuth.m . Since that API is not available to App Extensions, it appears that FirebaseAuth (and anything that depends on it, such as Firestore) can not be used in an App Extension. Is there any way around this limitation? 回答1: Update: Firebase confirms that a fix is targeted for 5.2.x version. Track the Github issue for latest updates. It seems as Firebase is not officially supporting extensions in iOS. I have got that info from this

prevent firebase user from deleting himself

江枫思渺然 提交于 2019-12-12 12:40:58
问题 If I open a website with firebase installed and i execute this firebase.auth().currentUser.delete() in browser console after a user has logged in, the current user will be deleted . How can i prevent a user from calling the delete function. is there a way to disable this? 回答1: There is no way to prevent a user from deleting their Firebase Authentication account. But whether you expose such functionality in your app is of course up to you. It sounds a bit like an XY problem. What app-level

Android Firebase cannot refresh email verification status

青春壹個敷衍的年華 提交于 2019-12-12 12:27:48
问题 In my Android app, I am creating user and sending verification email. I want to proceed to the next page when the user has verified by clicking the link in the email received. However, the verification status didn't update so I cannot proceed. I have tried signing out and signing in again which works but I don't want to refresh the status in this way. Any ideas? Here is my code: public void onClickContinueBtn() { final FirebaseUser user = FirebaseAuth.getInstance().getCurrentUser(); user

Firebase UserProfileChangeRequest isn't working

冷暖自知 提交于 2019-12-12 12:11:32
问题 I'm trying to create an profile activity, where users can change those Profile picture and Display name, I'm trying to update user photo or user name, CompleteListener called, task.isSuccessful = true but nathing done, why? Function to update name: FirebaseUser mFirebaseUser = FirebaseAuth.getInstance().getCurrentUser(); final String newName; newName = input.getText().toString(); UserProfileChangeRequest profileUpdates = new UserProfileChangeRequest.Builder() .setDisplayName(newName) .build()

Firebase token.email_verified going weird

折月煮酒 提交于 2019-12-12 12:09:09
问题 Ok so im making a blog which requires users to login through firebase. To post comments, their email has to be verified I know how to verify the email, and i did so with my test account. When i typed into the console firebase.auth().currentUser.emailVerified it returned true, so yes my email was verified. But the comment .validate rule requires the user to be validated, like so: auth.token.email_verified === true However it wasn't working, so i removed it and it began to work again After a

Google Sign-in not working after releasing signed APK in Alpha testing

血红的双手。 提交于 2019-12-12 12:01:54
问题 I Had problem in sign in for google. I had installed the release build manually its working , but if I install it from play store I am getting sign in failed. W/Auth: [Get Token] Get Token failed with status code: UNREGISTERED_ON_API_CONSOLE E/TokenRequestor: You have wrong OAuth2 related configurations, please check. Detailed error: UNREGISTERED_ON_API_CONSOLE E/SignInActivity: Google Sign In failed. Code snippet: GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions

Firebase firestore not updating email verification status

拟墨画扇 提交于 2019-12-12 11:57:30
问题 I have my security rules setup like so (in firestore console). service cloud.firestore { match /databases/{database}/documents { match /{document=**} { allow read: if request.auth.uid != null && request.auth.token.email_verified; allow write: if false; } } } Firebase auto logs-in new users. Therefore, a recent user will have a non verified email address. When the user verifies their email, I'm getting these results in my app. Auth.auth().currentUser?.isEmailVerified // This is true But when I

How to retrive additional fields from Firebase Custom Token into “UserInfo”

六眼飞鱼酱① 提交于 2019-12-12 11:20:17
问题 I am using custom token method to authenticate in firebase. From server, I am getting JWToken which has following data in addition to other token fields: { "uid" : "user_uid", "user_role": "admin" } In Firebase 2.x: We used to fetch token fields as - authData.getAuth().get("user_role").toString(); But In the new Firebase SDK: How to get the data (value of "user_role") from token. NOTE: I have tried using UserInfo to get the value of "user_role", but there is no method/way to fetch such custom

Firebase verify multiple email addresses for the same user

試著忘記壹切 提交于 2019-12-12 09:47:26
问题 I'm using Firebase web SDK 4.0.0 and want to enable my users to verify multiple email addresses for the same account. For context, my objective is to receive email from dave@home.com and dave@work.com and know that it's definitely coming from Dave (uid 123456789). I've looked up the docs about linking accounts but I'm assuming this approach isn't going to work as I need multiple emails. I thought about storing the emails in the db and linking them to the user but that doesn't hook into the

laravel fcm push notification with brozot/Laravel-FCM not working on ios but working fine with android

a 夏天 提交于 2019-12-12 09:41:03
问题 Even ios can get notification from fcm console. Controller function : public function push(Request $request) { $validator = Validator::make($request->all(), [ 'title' = > 'required', 'body' = > 'required', 'token' = > 'required', 'type' = > 'required', 'id' = > 'required', ]); if ($validator->fails()) { $this->throwValidationException( $request, $validator ); } $title = $request['title']; $body = $request['body']; $type = $request['type']; $id = $request['id']; $dataarray = array( "id" = >$id