ddt 1.0.0
ddt: ^1.0.0 copied to clipboard
This package helps to generate and verify authentication token.
ddt #
This package helps to encryption and decryption and hash with verification.
Using #
For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile and web development, and a full API reference.
Installation #
First, add ddt
as a dependency in your pubspec.yaml file.
In your flutter project add the dependency:
dependencies:
...
ddt:
For help getting started with Flutter, view the online documentation.
Example #
Please follow this example here.
Generate Token #
DDT.generateToken(payload, key: "datadirr", seconds: 60); // seconds: 0 (No Expiry)
Verify Token #
DDT.verifyToken(token, key: "datadirr");
Check Token Expired or not #
DDT.isTokenExpired(token, key: "datadirr");