Skip to content

Commit 32ab235

Browse files
authored
Merge pull request #85 from passageidentity/PSG-5279
PSG-5279: Typo fix - MagicLink
2 parents 351cef2 + e8ae951 commit 32ab235

File tree

7 files changed

+23
-23
lines changed

7 files changed

+23
-23
lines changed

.github/workflows/integration-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ jobs:
138138
id: install-simulator
139139
uses: futureware-tech/simulator-action@v3
140140
with:
141-
model: 'iPhone 14'
141+
model: 'iPhone 15'
142142

143143
- name: Run iOS tests
144144
run: flutter test integration_test/*.dart -d ${{ steps.install-simulator.outputs.udid }} --dart-define=MAILOSAUR_API_KEY=${{ secrets.MAILOSAUR_API_KEY }}

integrationtestapp/integration_test/change_user_info_test.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ void main() {
2828
Future<void> loginWithMagicLink() async {
2929
try {
3030
await passage
31-
.magliclink.login(IntegrationTestConfig.existingUserEmailMagicLink);
31+
.magiclink.login(IntegrationTestConfig.existingUserEmailMagicLink);
3232
await Future.delayed(const Duration(
3333
milliseconds: IntegrationTestConfig.waitTimeMilliseconds));
3434
final magicLinkStr = await MailosaurAPIClient.getMostRecentMagicLink();
3535
if (magicLinkStr.isEmpty) {
3636
fail('Test failed: Magic link is empty');
3737
}
38-
await passage.magliclink.activate(magicLinkStr);
38+
await passage.magiclink.activate(magicLinkStr);
3939
} catch (e) {
4040
fail('Expected to activate login magic link, but got an exception: $e');
4141
}

integrationtestapp/integration_test/current_user_test.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@ void main() {
3131
Future<void> loginWithMagicLink() async {
3232
try {
3333
await passage
34-
.magliclink
34+
.magiclink
3535
.login(IntegrationTestConfig.existingUserEmailMagicLink);
3636
await Future.delayed(
3737
const Duration(milliseconds: IntegrationTestConfig.waitTimeMilliseconds));
3838
final magicLinkStr = await MailosaurAPIClient.getMostRecentMagicLink();
3939
if (magicLinkStr.isEmpty) {
4040
fail('Test failed: Magic link is empty');
4141
}
42-
await passage.magliclink.activate(magicLinkStr);
42+
await passage.magiclink.activate(magicLinkStr);
4343
} catch (e) {
4444
fail('Expected to activate login magic link, but got an exception: $e');
4545
}

integrationtestapp/integration_test/magic_link_test.dart

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ void main() {
3131
final date = DateTime.now().millisecondsSinceEpoch;
3232
final identifier =
3333
'authentigator+$date@${MailosaurAPIClient.serverId}.mailosaur.net';
34-
await passage.magliclink.register(identifier);
34+
await passage.magiclink.register(identifier);
3535
} catch (e) {
3636
fail(
3737
'Expected to send a register magic link, but got an exception: $e');
@@ -40,7 +40,7 @@ void main() {
4040

4141
test('testRegisterExistingUserMagicLink', () async {
4242
try {
43-
await passage.magliclink.register(
43+
await passage.magiclink.register(
4444
IntegrationTestConfig.existingUserEmailMagicLink);
4545
fail('Expected PassageError but got success');
4646
} catch (e) {
@@ -54,7 +54,7 @@ void main() {
5454

5555
test('testRegisterInvalidEmailAddressFormatMagicLink', () async {
5656
try {
57-
await passage.magliclink.register('invalid');
57+
await passage.magiclink.register('invalid');
5858
fail('Expected PassageError but got success');
5959
} catch (e) {
6060
if (e is PassageError) {
@@ -68,15 +68,15 @@ void main() {
6868
test('testSendLoginMagicLink', () async {
6969
try {
7070
const identifier = IntegrationTestConfig.existingUserEmailMagicLink;
71-
await passage.magliclink.login(identifier);
71+
await passage.magiclink.login(identifier);
7272
} catch (e) {
7373
fail('Expected to send a login magic link, but got an exception: $e');
7474
}
7575
});
7676

7777
test('testInvalidLoginMagicLink', () async {
7878
try {
79-
await passage.magliclink.login('Invalid@invalid.com');
79+
await passage.magiclink.login('Invalid@invalid.com');
8080
fail('Expected PassageError but got success');
8181
} catch (e) {
8282
if (e is PassageError) {
@@ -92,14 +92,14 @@ void main() {
9292
final date = DateTime.now().millisecondsSinceEpoch;
9393
final identifier =
9494
'authentigator+$date@${MailosaurAPIClient.serverId}.mailosaur.net';
95-
await passage.magliclink.register(identifier);
95+
await passage.magiclink.register(identifier);
9696
await Future.delayed(const Duration(
9797
milliseconds: IntegrationTestConfig.waitTimeMilliseconds));
9898
final magicLinkStr = await MailosaurAPIClient.getMostRecentMagicLink();
9999
if (magicLinkStr.isEmpty) {
100100
fail('Test failed: Magic link is empty');
101101
}
102-
await passage.magliclink.activate(magicLinkStr);
102+
await passage.magiclink.activate(magicLinkStr);
103103
} catch (e) {
104104
fail(
105105
'Expected to activate register magic link, but got an exception: $e');
@@ -108,25 +108,25 @@ void main() {
108108

109109
test('testActivateLoginMagicLink', () async {
110110
try {
111-
await passage.magliclink.login(
111+
await passage.magiclink.login(
112112
IntegrationTestConfig.existingUserEmailMagicLink);
113113
await Future.delayed(const Duration(
114114
milliseconds: IntegrationTestConfig.waitTimeMilliseconds));
115115
final magicLinkStr = await MailosaurAPIClient.getMostRecentMagicLink();
116116
if (magicLinkStr.isEmpty) {
117117
fail('Test failed: Magic link is empty');
118118
}
119-
await passage.magliclink.activate(magicLinkStr);
119+
await passage.magiclink.activate(magicLinkStr);
120120
} catch (e) {
121121
fail('Expected to activate login magic link, but got an exception: $e');
122122
}
123123
});
124124

125125
test('testActivateInvalidMagicLink', () async {
126126
try {
127-
await passage.magliclink.register(
127+
await passage.magiclink.register(
128128
'authentigator+invalid@${MailosaurAPIClient.serverId}.mailosaur.net');
129-
await passage.magliclink.activate('Invalid');
129+
await passage.magiclink.activate('Invalid');
130130
fail('Expected PassageError but got success');
131131
} catch (e) {
132132
if (e is PassageError) {
@@ -139,15 +139,15 @@ void main() {
139139

140140
test('testActivateDeactivatedUserMagicLink', () async {
141141
try {
142-
await passage.magliclink.login(
142+
await passage.magiclink.login(
143143
IntegrationTestConfig.deactivatedUserEmailMagicLink);
144144
await Future.delayed(const Duration(
145145
milliseconds: IntegrationTestConfig.waitTimeMilliseconds));
146146
final magicLinkStr = await MailosaurAPIClient.getMostRecentMagicLink();
147147
if (magicLinkStr.isEmpty) {
148148
fail('Test failed: Magic link is empty');
149149
}
150-
await passage.magliclink.activate(magicLinkStr);
150+
await passage.magiclink.activate(magicLinkStr);
151151
fail('Expected PassageError but got success');
152152
} catch (e) {
153153
if (e is PassageError) {

integrationtestapp/integration_test/token_store_test.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@ void main() {
2727
Future<void> loginWithMagicLink() async {
2828
try {
2929
await passage
30-
.magliclink.login(IntegrationTestConfig.existingUserEmailMagicLink);
30+
.magiclink.login(IntegrationTestConfig.existingUserEmailMagicLink);
3131
await Future.delayed(const Duration(
3232
milliseconds: IntegrationTestConfig.waitTimeMilliseconds));
3333
final magicLinkStr = await MailosaurAPIClient.getMostRecentMagicLink();
3434
if (magicLinkStr.isEmpty) {
3535
fail('Test failed: Magic link is empty');
3636
}
37-
await passage.magliclink.activate(magicLinkStr);
37+
await passage.magiclink.activate(magicLinkStr);
3838
} catch (e) {
3939
fail('Expected to activate login magic link, but got an exception: $e');
4040
}

lib/passage_flutter.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class PassageFlutter {
1212
late final PassagePasskey passkey;
1313
late final PassageSocial social;
1414
late final PassageOneTimePasscode oneTimePasscode;
15-
late final PassageMagliclink magliclink;
15+
late final PassageMagiclink magiclink;
1616
late final PassageHosted hosted;
1717
late final PassageApp app;
1818
late final PassageTokenStore tokenStore;
@@ -22,7 +22,7 @@ class PassageFlutter {
2222
passkey = PassagePasskey();
2323
social = PassageSocial();
2424
oneTimePasscode = PassageOneTimePasscode();
25-
magliclink = PassageMagliclink();
25+
magiclink = PassageMagiclink();
2626
hosted = PassageHosted();
2727
app =PassageApp();
2828
tokenStore = PassageTokenStore();

lib/passage_magliclink.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import 'package:passage_flutter/models/magic_link.dart';
22
import 'passage_flutter_models/auth_result.dart';
33
import 'passage_flutter_platform/passage_flutter_platform_interface.dart';
44

5-
class PassageMagliclink {
5+
class PassageMagiclink {
66

77
/// Creates and sends a new magic link for registration.
88
///

0 commit comments

Comments
 (0)