Skip to content
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

Migrate authentication_base package to null safety #445

Merged
merged 6 commits into from
Aug 9, 2023

Conversation

nilsreichardt
Copy link
Member

Closes #207

@github-actions github-actions bot added dependencies Changing, updating, adding or removing one or more dependencies. testing labels Mar 9, 2023
DemoUser()
: super(
uid: 'testUser',
firebaseUser: DemoFirebaseUser(),
Copy link
Member Author

@nilsreichardt nilsreichardt Mar 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure how we should handle this the DemoUser. Because we are forced to provider a firebaseUser or restructure the user (like making the firebaseUser null). The User of the Firebase Auth package has no constructor so we need to create our own DemoFirebaseUser which brings the problem of implementing methods like delete()

cc: @Jonas-Sander

Copy link
Collaborator

@Jonas-Sander Jonas-Sander Apr 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need to implement delete? As long as its only for testing and we don't necessarily need the specific method for a test just make it a no-op.

@github-actions
Copy link

github-actions bot commented Mar 9, 2023

Visit the preview URL for this PR (updated for commit 9b0a53c):

https://sharezone-test--pr445-migrate-authenticati-jw4ykupc.web.app

(expires Wed, 16 Aug 2023 17:15:58 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 4cb3ae61e1e018abfd9841fd3239f5b49ccc034b

@@ -13,27 +13,20 @@ import 'package:sharezone_utils/platform.dart';
import 'package:sign_in_with_apple/sign_in_with_apple.dart';

class AppleSignInLogic {
Future<User> signIn() async {
Future<User?> signIn() async {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this throw an Exception or return a user?

@github-actions github-actions bot added feature: authentification Logging in/out (anonymous, sign-in with X, etc.) and registration. feature: analytics Includes everything that is related to analytics and usage tracking and removed testing labels Aug 9, 2023
@Jonas-Sander Jonas-Sander marked this pull request as ready for review August 9, 2023 16:56
@Jonas-Sander Jonas-Sander enabled auto-merge August 9, 2023 16:57
@Jonas-Sander Jonas-Sander added this pull request to the merge queue Aug 9, 2023
@Jonas-Sander Jonas-Sander removed this pull request from the merge queue due to a manual request Aug 9, 2023
@Jonas-Sander Jonas-Sander merged commit e37f8fa into main Aug 9, 2023
@Jonas-Sander Jonas-Sander deleted the migrate-authentication-base-to-null-safety branch August 9, 2023 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Changing, updating, adding or removing one or more dependencies. feature: analytics Includes everything that is related to analytics and usage tracking feature: authentification Logging in/out (anonymous, sign-in with X, etc.) and registration.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Migrate the authentification_base package to null safety
2 participants