Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/src/firebase_auth_mocks_base.dart
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ class MockFirebaseAuth implements FirebaseAuth {
isEmailVerified: _verifyEmailAutomatically,
displayName: 'Mock User',
providerData: [
UserInfo.fromPigeon(PigeonUserInfo(
UserInfo.fromPigeon(InternalUserInfo(
email: email,
uid: id,
providerId: 'password',
Expand Down
4 changes: 2 additions & 2 deletions lib/src/mock_user.dart
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ class MockUser with EquatableMixin implements User {

IdTokenResult getIdTokenResultSync() {
return _idTokenResult ??
IdTokenResult(PigeonIdTokenResult(
IdTokenResult(InternalIdTokenResult (
authTimestamp: 1655946582,
claims: _customClaim,
expirationTimestamp: 1656305736,
Expand Down Expand Up @@ -234,7 +234,7 @@ class MockUser with EquatableMixin implements User {
}
maybeThrowException(this, Invocation.method(#linkWithProvider, [provider]));
providerData.add(
UserInfo.fromPigeon(PigeonUserInfo(
UserInfo.fromPigeon(InternalUserInfo(
providerId: provider.providerId,
isAnonymous: false,
isEmailVerified: _isEmailVerified,
Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: firebase_auth_mocks
description: Fakes for Firebase Auth. Use this package with `google_sign_in_mocks` to write unit tests involving Firebase Authentication.
version: 0.15.1
version: 0.15.2
homepage: https://www.wafrat.com
repository: https://github.com/atn832/firebase_auth_mocks

Expand All @@ -16,7 +16,7 @@ dependencies:
equatable: ^2.0.0
dart_jsonwebtoken: ^3.2.0
uuid: ^4.1.0
firebase_auth_platform_interface: ^8.0.0
firebase_auth_platform_interface: ^9.0.0
mock_exceptions: ^0.8.2

dev_dependencies:
Expand Down
2 changes: 1 addition & 1 deletion test/firebase_auth_mocks_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import 'package:jwt_decoder/jwt_decoder.dart';
import 'package:mock_exceptions/mock_exceptions.dart';
import 'package:test/test.dart';

final userIdTokenResult = IdTokenResult(PigeonIdTokenResult(
final userIdTokenResult = IdTokenResult(InternalIdTokenResult(
authTimestamp: DateTime.now().millisecondsSinceEpoch,
claims: {'role': 'admin'},
token: 'some_long_token',
Expand Down
Loading