wpUserToken static method

Future<String?> wpUserToken()

Get the token for the user

Implementation

static Future<String?> wpUserToken() async {
  WpUser? _wpUser = await wpUser();
  if (_wpUser == null) return null;
  return _wpUser.token;
}