getReqId method

Future<String?> getReqId()

Returns reqId from prefs (or null)

Implementation

Future<String?> getReqId() async {
  try {
    final prefs = await SharedPreferences.getInstance();
    final reqId = prefs.getString(_kReqIdKey);
    return (reqId != null && reqId.isNotEmpty) ? reqId : null;
  } catch (e) {
    debugPrint?.call('AuthService.getReqId: $e');
    return null;
  }
}