Skip to content

Commit

Permalink
refactor: consolidate types in one file
Browse files Browse the repository at this point in the history
  • Loading branch information
Vinzent03 committed Aug 15, 2024
1 parent 04eab28 commit e372c46
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 29 deletions.
3 changes: 1 addition & 2 deletions packages/gotrue/lib/gotrue.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ export 'src/types/auth_response.dart' hide ToSnakeCase;
export 'src/types/auth_state.dart';
export 'src/types/gotrue_async_storage.dart';
export 'src/types/mfa.dart';
export 'src/types/o_auth_provider.dart';
export 'src/types/oauth_flow_type.dart';
export 'src/types/types.dart';
export 'src/types/session.dart';
export 'src/types/user.dart';
export 'src/types/user_attributes.dart';
1 change: 0 additions & 1 deletion packages/gotrue/lib/src/gotrue_client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import 'package:gotrue/src/fetch.dart';
import 'package:gotrue/src/helper.dart';
import 'package:gotrue/src/types/auth_response.dart';
import 'package:gotrue/src/types/fetch_options.dart';
import 'package:gotrue/src/types/types.dart';
import 'package:http/http.dart';
import 'package:jwt_decode/jwt_decode.dart';
import 'package:meta/meta.dart';
Expand Down
22 changes: 0 additions & 22 deletions packages/gotrue/lib/src/types/o_auth_provider.dart

This file was deleted.

4 changes: 0 additions & 4 deletions packages/gotrue/lib/src/types/oauth_flow_type.dart

This file was deleted.

28 changes: 28 additions & 0 deletions packages/gotrue/lib/src/types/types.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,31 @@ typedef BroadcastChannel = ({
Stream<String> onMessage,
void Function(String) postMessage,
});

enum AuthFlowType {
implicit,
pkce,
}

enum OAuthProvider {
apple,
azure,
bitbucket,
discord,
facebook,
figma,
github,
gitlab,
google,
kakao,
keycloak,
linkedin,
linkedinOidc,
notion,
slack,
spotify,
twitch,
twitter,
workos,
zoom,
}

0 comments on commit e372c46

Please sign in to comment.