tryDecode method

  1. @override
Map<String, dynamic>? tryDecode(
  1. String token
)
override

Tries to decodes the token into a Map of claims, returns null if decoding fails.

Implementation

@override
Map<String, dynamic>? tryDecode(String token) {
  try {
    return JwtDecoder.tryDecode(token);
  } catch (_) {
    return null;
  }
}