auth_params 1.0.0+1

Dart native js
Flutter Android iOS web

Parser for auth-param syntax from RFC7235.

example/auth_params_example.dart

import 'package:auth_params/auth_params.dart';
import 'package:collection/collection.dart';

main() {
  final Map<String, String> data = {"job": "Developer", "name": "Charles"};

  final encoded = authParams.encode(data);

  print(encoded);
  // job="Developer",name="Charles"

  final decoded = authParams.decode(encoded);

  print(decoded);
  // {job: Developer, name: Charles}

  print(MapEquality().equals(data, decoded));
  // true
}
0
likes
90
pub points
5%
popularity

Parser for auth-param syntax from RFC7235.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

cretezy@gmail.com

License

MIT (LICENSE)

More

Packages that depend on auth_params