okadan / flutter-device-check

A Flutter plugin for using the Apple's DeviceCheck API on iOS

Home Page:https://pub.dev/packages/device_check

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Converting to generated token to String

alansteiman opened this issue · comments

The method generateToken returns Uint8List, I want to convert to String in order to send it to the backend.

I have tried

String.fromCharCodes(generatedToken);

and

 Utf8Decoder().convert(generatedToken);

But none seems to work as expected. Can you guide me on the right approach?