encodeData method

  1. @override
Uint8List encodeData(
  1. JWTData params
)
override

Implementation

@override
Uint8List encodeData(JWTData params) {
  final String data = <String>[
    encodeJson(params.header.toJson()),
    encodeJson(params.payload.toJson()),
  ].join(JWT_DELIMITER);

  return Uint8List.fromList(utf8.encode(data));
}