Skip to content

Commit

Permalink
fix stuffs
Browse files Browse the repository at this point in the history
thank u coding398
  • Loading branch information
codingMASTER398 authored Oct 8, 2023
1 parent a18f65b commit ad273e2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "repl-auth",
"version": "1.0.6",
"version": "1.0.7",
"description": "Use Replit's Repl Auth in your project without hosting on Replit.",
"type": "module",
"main": "./dist/index.cjs",
Expand Down
4 changes: 4 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ export function express(
});
}

if(!req.headers.cookie){
return next();
}

const cookies: { [key: string]: string } = Object.fromEntries(
req.headers.cookie.split(';').map((x) => {
const a = x.trim().split('=');
Expand Down

0 comments on commit ad273e2

Please sign in to comment.