cookie parsing from RequestEvent

This commit is contained in:
Landon Noss 2022-02-02 20:49:50 -07:00
parent 143a6e3c4a
commit d01a56f7fd
3 changed files with 10145 additions and 1835 deletions

8387
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -46,11 +46,12 @@ export class Auth {
}
async getToken(headers: any) {
if (!headers.cookie) {
if (!headers.get('cookie')) {
return null;
}
const cookies = cookie.parse(headers.cookie);
const cookies = cookie.parse(headers.get('cookie'));
if (!cookies.svelteauthjwt) {
return null;

3588
yarn.lock

File diff suppressed because it is too large Load Diff