Skip to content

Commit

Permalink
set authmethod type to dynamic in welcome
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahad-10 committed Apr 22, 2024
1 parent 10b3e7c commit f36522a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/src/messages/welcome.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class Welcome implements Message {
final Map<String, dynamic> roles;
final String authID;
final String authRole;
final List<String> authMethods;
final List<dynamic> authMethods;
final Map<String, dynamic> authExtra;

static Welcome parse(final List<dynamic> message) {
Expand All @@ -27,7 +27,7 @@ class Welcome implements Message {

String authRole = validateStringOrRaise(details["authrole"], text, "authrole");

List<String> authMethods = validateListOrRaise(details["authmethods"], text, "authmethods");
List<dynamic> authMethods = validateListOrRaise(details["authmethods"], text, "authmethods");

Map<String, dynamic> authExtra = validateMapOrRaise(details["authextra"], text, "authextra");

Expand Down

0 comments on commit f36522a

Please sign in to comment.