code: static AuthRequest fromString(String str) {
          String[] parts = str.split("-----");
          String clientId = parts[0];
          String[] scopes = parts.length == 2 ? parts[1].split(",") : new String[0];
          AuthRequest req = new AuthRequest("", clientId).withScopes(scopes);
          return req;
      }
docs: Returns an {@link AuthRequest} represented by the string serialization.