mirror of
https://github.com/jonasroussel/dart_jsonwebtoken.git
synced 2025-05-21 18:16:16 +08:00
push to github
This commit is contained in:
12
example/example.dart
Normal file
12
example/example.dart
Normal file
@ -0,0 +1,12 @@
|
||||
import 'package:jsonwebtoken/jsonwebtoken.dart';
|
||||
|
||||
main() {
|
||||
final jwt = JWT(payload: {
|
||||
'hello': 'world',
|
||||
'iat': 1590774250,
|
||||
});
|
||||
|
||||
final token = jwt.sign(key: 'test');
|
||||
|
||||
print(token);
|
||||
}
|
Reference in New Issue
Block a user