sign method

String sign(
  1. PrivateKey privateKey
)

Implementation

String sign(PrivateKey privateKey) {
  return DartApi.native.jwtBuilder
      .sign(_ffi, privateKey.ffi)
      .extract((res) => res.asString);
}