mirror of
https://github.com/classchartsapi/classcharts-api-js.git
synced 2026-05-14 11:58:13 +00:00
Fix parent auth cookies and ignore local secrets
This commit is contained in:
parent
65ae5d4a54
commit
80fde1386b
2 changed files with 8 additions and 2 deletions
6
.gitignore
vendored
6
.gitignore
vendored
|
|
@ -1,2 +1,8 @@
|
|||
npm/
|
||||
.cov/
|
||||
|
||||
# Local secrets (never commit)
|
||||
secrets.json
|
||||
secrets.local.json
|
||||
.env
|
||||
.env.local
|
||||
|
|
@ -62,7 +62,7 @@ export class ParentClient extends BaseClient {
|
|||
}
|
||||
|
||||
const cookies = String(response.headers.get("set-cookie"));
|
||||
// this.authCookies = cookies.split(";");
|
||||
this.authCookies = cookies.split(",");
|
||||
const sessionCookies = parseCookies(cookies);
|
||||
const sessionID = JSON.parse(
|
||||
String(sessionCookies.parent_session_credentials),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue