diff options
author | Lizzy Hunt <logan.hunt@usu.edu> | 2023-02-15 11:04:32 -0700 |
---|---|---|
committer | Lizzy Hunt <logan.hunt@usu.edu> | 2023-02-15 11:05:25 -0700 |
commit | 30cbc219e68ef5fc7da56e322e1aeca102bdb479 (patch) | |
tree | acceb5b39b06a48e3ed83a2ae0768570d7bf4b98 /src/axios_client.js | |
parent | 39cb1f34e3ebc4c989f1c1b44f031331d8c3e036 (diff) | |
download | aggietimed-30cbc219e68ef5fc7da56e322e1aeca102bdb479.tar.gz aggietimed-30cbc219e68ef5fc7da56e322e1aeca102bdb479.zip |
Fuck CAS. All my homies fucking hate CAS.
Diffstat (limited to 'src/axios_client.js')
-rw-r--r-- | src/axios_client.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/axios_client.js b/src/axios_client.js new file mode 100644 index 0000000..fd7325c --- /dev/null +++ b/src/axios_client.js @@ -0,0 +1,6 @@ +import { wrapper } from "axios-cookiejar-support"; +import { CookieJar } from "tough-cookie"; +import axios from "axios"; + +const jar = new CookieJar(); +export const client = wrapper(axios.create({ jar, withCredentials: true })); |