mirror of
https://github.com/classchartsapi/classcharts-api-js.git
synced 2026-05-14 11:58:13 +00:00
chore: typo fixes + config files
This commit is contained in:
parent
f11c7c564d
commit
00e3a13821
17 changed files with 124 additions and 16 deletions
|
|
@ -24,7 +24,7 @@ export class ParentClient extends BaseClient {
|
|||
}
|
||||
|
||||
/**
|
||||
* Authenticates with classcharts
|
||||
* Authenticates with ClassCharts
|
||||
*/
|
||||
async login(): Promise<void> {
|
||||
if (!this.email) throw new Error("Email not inputted");
|
||||
|
|
@ -33,7 +33,7 @@ export class ParentClient extends BaseClient {
|
|||
formData.append("email", this.email);
|
||||
formData.append("logintype", "existing");
|
||||
formData.append("password", this.password);
|
||||
formData.append("recaptcha-token", "no-token-avaliable");
|
||||
formData.append("recaptcha-token", "no-token-available");
|
||||
const headers = new Headers({
|
||||
"Content-Type": "application/x-www-form-urlencoded",
|
||||
});
|
||||
|
|
@ -45,7 +45,7 @@ export class ParentClient extends BaseClient {
|
|||
});
|
||||
if (response.status != 302 || !response.headers.get("set-cookie"))
|
||||
throw new Error(
|
||||
"Unauthenticated: Classcharts returned an error: " +
|
||||
"Unauthenticated: ClassCharts returned an error: " +
|
||||
response.status +
|
||||
" " +
|
||||
response.statusText
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue