getJWTToken static method

Future<String?> getJWTToken()

Get JWT token from storage

Implementation

static Future<String?> getJWTToken() async {
  try {
    final result = await platform.invokeMethod('getJWTToken');
    return result as String?;
  } on PlatformException catch (e) {
    print("Failed to get JWT token: '${e.message}'.");
    return null;
  }
}