Skip to content
This repository has been archived by the owner on Jan 4, 2025. It is now read-only.

Commit

Permalink
feat(lib): add possibility for custom url
Browse files Browse the repository at this point in the history
  • Loading branch information
Vexcited committed May 14, 2024
1 parent e113daf commit a3776cf
Show file tree
Hide file tree
Showing 3 changed files with 5,722 additions and 4,280 deletions.
1 change: 1 addition & 0 deletions packages/library/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
"release-it": "^17.1.1",
"terser": "^5.29.2",
"tsup": "^8.0.2",
"tsx": "^4.10.2",
"typescript": "^5.4.2"
},
"dependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/library/src/fetcher/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ export const readSignaturesPageFromWebVPN = async (username: string, password: s
return response.data;
};

export const readSignaturesPage = async (username: string, password: string) => {
const response = await fetch(SIGNATURES_URL, {
export const readSignaturesPage = async (username: string, password: string, url = SIGNATURES_URL) => {
const response = await fetch(url, {
method: "POST",
headers: { ...SIGNATURES_HEADERS },
body: createLoginBody(username, password)
Expand Down
Loading

0 comments on commit a3776cf

Please sign in to comment.