-
Notifications
You must be signed in to change notification settings - Fork 1.7k
[Auth] TOTP support for macOS #15112
New issue
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
base: main
Are you sure you want to change the base?
Changes from 4 commits
fcf2fda
29757c1
08d8830
23221cd
9ace54a
4204fdf
3f496af
c0d1746
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
I'm unfamiliar with why this is required. Why is the forward declaration needed? Does Flutter not get the type via a module import? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I dug deeper into this when working on SMS MFA where even with forward declarations I was unable to get the macOS Flutter plugin to compile. Looks like this should indeed not be used with module imports. For some reason the Flutterfire plugin does not use module imports on macOS: #if TARGET_OS_OSX
#import <FirebaseAuth/FirebaseAuth.h>
#else
@import FirebaseAuth;
#endif I tried to change that but whatever I tried the FirebaseAuth module as unable to be found. Using modular imports was added in firebase/flutterfire#13400 and reverted for macOS in firebase/flutterfire#16773. @russellwheatley, can you share why this was done or what issues you encountered with the modular imports on macOS? Hopefully @ncooke3 can help us fix those. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Created firebase/flutterfire#17552 to track this in Flutterfire. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @cbenhagen, so IIUC, this new header makes no difference and could be removed? I'm confused with how this relates or does not relate to the type of import used within Flutter. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @ncooke3 this header is needed unless we can fix the import style currently used in Flutterfire. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @cbenhagen Got it. When you said "where even with forward declarations" (in your first reply 2 weeks ago), do you mean the forward decl. in this file within this repo or forward decl. in the FlutterFire repo? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @ncooke3 I was talking about a potential next PR which would also allow phone authentication / MFA on macOS. Unlike for this PR where I could get it to compile with the forward declaration in So for this PR, this added header file would be enough. Fixing the imports would be better in the long run though. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/* | ||
* Copyright 2019 Google | ||
cbenhagen marked this conversation as resolved.
Show resolved
Hide resolved
|
||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
@class FIRTOTPSecret; |
Uh oh!
There was an error while loading. Please reload this page.