{"size": 289, "ext": "js", "max_stars_repo_path": "client/src/services/AuthenticationApi.js", "max_stars_repo_name": "tamasoszko/ReactDemo", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "client/src/services/AuthenticationApi.js", "max_issues_repo_name": "tamasoszko/ReactDemo", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "client/src/services/AuthenticationApi.js", "max_forks_repo_name": "tamasoszko/ReactDemo", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 26.2727272727, "max_line_length": 49, "alphanum_fraction": 0.6435986159}
import { loginUrl, productUrl } from "./Urls";
import { backend } from "./Backend";

export async function login(username, password) {
    const url = loginUrl()
    const body = {
        username: username,
        password: password,
    }
    return await backend.sendData(url, body)
}