turnkey_api_key_stamper 0.1.0 copy "turnkey_api_key_stamper: ^0.1.0" to clipboard
turnkey_api_key_stamper: ^0.1.0 copied to clipboard

A Dart package for API stamping functionalities.

Turnkey Api Stamper #

This package contains functions to stamp a Turnkey request. It is meant to be used with Turnkey's http package.

Example usage:

import 'package:turnkey_api_key_stamper/api_stamper.dart';
import 'package:turnkey_http/turnkey_client.dart';

// This stamper produces signatures using the API key pair passed in.
final stamper = ApiStamper(
  apiPublicKey: '...',
  apiPrivateKey: '...',
);

// The Turnkey client uses the passed in stamper to produce signed requests
// and sends them to Turnkey
final client = TurnkeyClient(
  config: THttpConfig(baseUrl: 'https://api.turnkey.com'),
  stamper: stamper,
);

// Now you can make authenticated requests!
final data = await client.getWhoami(
  input: TGetWhoamiRequest(organizationId: '<Your organization id>'),
);
copied to clipboard
0
likes
130
points
80
downloads

Publisher

verified publisherturnkey.com

Weekly Downloads

2024.09.16 - 2025.03.31

A Dart package for API stamping functionalities.

Repository (GitHub)

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

crypto, ecdsa, elliptic, flutter, turnkey_encoding, turnkey_http

More

Packages that depend on turnkey_api_key_stamper