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
77 changes: 0 additions & 77 deletions .github/workflows/ci.yml

This file was deleted.

152 changes: 0 additions & 152 deletions CLIENT_DELIVERY_SUMMARY.md

This file was deleted.

Binary file modified kinde_preference.hive
Binary file not shown.
14 changes: 7 additions & 7 deletions test/kinde_flutter_sdk_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import 'mock_channels.dart';
import 'test_helpers/dio_adapter.dart';

void main() async {

TestWidgetsFlutterBinding.ensureInitialized();

mockChannels.setupMockChannel();
Expand All @@ -26,42 +25,43 @@ void main() async {
});

test('test sdk login', () async {

await KindeFlutterSDK.instance.login();

expect(KindeFlutterSDK.instance.authState, isNotNull);
});

test('test sdk login pkce', () async {

await KindeFlutterSDK.instance.login(type: AuthFlowType.pkce);

expect(KindeFlutterSDK.instance.authState, isNotNull);
});

test('test sdk register', () async {

await KindeFlutterSDK.instance.register(type: AuthFlowType.pkce);

expect(KindeFlutterSDK.instance.authState, isNotNull);
});

test('test sdk register pkce', () async {

await KindeFlutterSDK.instance.register(type: AuthFlowType.pkce);

expect(KindeFlutterSDK.instance.authState, isNotNull);
});

test('test sdk logout', () async {
// First, ensure we have an auth state to logout from
await KindeFlutterSDK.instance.login();
expect(KindeFlutterSDK.instance.authState, isNotNull);

// Now perform logout
await KindeFlutterSDK.instance.logout(dio: mockDio);

// Verify auth state is cleared
expect(KindeFlutterSDK.instance.authState, isNull);
});

test('test create org', () async {

await KindeFlutterSDK.instance.createOrg(orgName: 'test');

});

test('test create org pkce', () async {
Expand Down