mirror of
https://github.com/classchartsapi/classcharts-api-js.git
synced 2026-05-14 11:58:13 +00:00
fix: login
This commit is contained in:
parent
75bc77fc0e
commit
80c3f6565e
4 changed files with 9 additions and 5 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -2,8 +2,12 @@
|
|||
"name": "classcharts-api",
|
||||
"version": "1.2.0",
|
||||
"description": "A javascript wrapper for getting information from the Classcharts API",
|
||||
"keywords": ["node", "typescript", "classcharts", "class charts"],
|
||||
"type": "module",
|
||||
"keywords": [
|
||||
"node",
|
||||
"typescript",
|
||||
"classcharts",
|
||||
"class charts"
|
||||
],
|
||||
"bugs": {
|
||||
"url": "https://github.com/Classcharts-API/js/issues"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ export class ClasschartsStudentClient extends ClasschartsClient {
|
|||
}
|
||||
this.authCookies = cookies;
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
let sessionID: any = decodeURI(cookies[2])
|
||||
let sessionID: any = decodeURI(cookies[1])
|
||||
.replace(/%3A/g, ":")
|
||||
.replace(/%2C/g, ",");
|
||||
sessionID = JSON.parse(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue