Skip to content

Commit

Permalink
added a brick for vyuh_feature, feature for firebase auth
Browse files Browse the repository at this point in the history
  • Loading branch information
pavanpodila committed Apr 9, 2024
1 parent 791dd0d commit 1d68c72
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions packages/system/vyuh_core/lib/plugin/auth/exceptions.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ abstract class AuthException implements Exception {
const AuthException(this.error);

final Object error;

@override
String toString() {
return '[$runtimeType]: $error';
}
}

final class LoginMethodFailure extends AuthException {
Expand Down
3 changes: 2 additions & 1 deletion packages/system/vyuh_core/lib/plugin/auth/user.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,13 @@ class User {
}

enum LoginMethod {
unknown,
anonymous,
emailPassword,
phoneOtp,
emailLink,
google,
meta,
facebook,
apple,
twitter,
github,
Expand Down

0 comments on commit 1d68c72

Please sign in to comment.