mirror of
https://github.com/jonasroussel/dart_jsonwebtoken.git
synced 2025-08-02 10:23:56 +08:00
v1.0.3
This commit is contained in:
@ -6,7 +6,7 @@ import './utils.dart';
|
||||
|
||||
class JWT {
|
||||
/// Verify a token.
|
||||
///
|
||||
///
|
||||
/// `key` must be
|
||||
/// - SecretKey with HS256 algorithm
|
||||
/// - PublicKey with RS256 algorithm
|
||||
@ -58,15 +58,15 @@ class JWT {
|
||||
|
||||
/// Audience claim
|
||||
final String audience;
|
||||
|
||||
|
||||
/// Subject claim
|
||||
final String subject;
|
||||
|
||||
|
||||
/// Issuer claim
|
||||
final String issuer;
|
||||
|
||||
/// Sign and generate a new token.
|
||||
///
|
||||
///
|
||||
/// `key` must be
|
||||
/// - SecretKey with HS256 algorithm
|
||||
/// - PrivateKey with RS256 algorithm
|
||||
|
Reference in New Issue
Block a user