Skip to content

Commit

Permalink
refine homepage. csrf basics.
Browse files Browse the repository at this point in the history
  • Loading branch information
a-type committed Aug 14, 2024
1 parent 13f24fd commit fd81086
Show file tree
Hide file tree
Showing 11 changed files with 104 additions and 389 deletions.
2 changes: 1 addition & 1 deletion packages/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
},
"type": "module",
"dependencies": {
"@a-type/auth-client": "1.0.6",
"@a-type/auth-client": "1.0.10",
"@a-type/utils": "1.1.3",
"@apollo/client": "3.10.8",
"@biscuits/apps": "workspace:*",
Expand Down
3 changes: 3 additions & 0 deletions packages/client/src/fetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ export const fetch = createFetch({
}
return false;
},
headers: {
'x-csrf-token': 'csrf',
},
});

export function login() {
Expand Down
Loading

0 comments on commit fd81086

Please sign in to comment.