Skip to content

Commit

Permalink
fix: pass crendentials for /validate-jwt
Browse files Browse the repository at this point in the history
Signed-off-by: Chirag Ghosh <cghosh828049@gmail.com>
  • Loading branch information
chirag-ghosh committed Jun 17, 2024
1 parent abfa28e commit fb25207
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/Form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const Form = () => {
const [isAuthenticated, setIsAuthenticated] = useState(false);

useEffect(() => {
fetch(`${BACKEND_URL}/validate-jwt`).then((response) => {
fetch(`${BACKEND_URL}/validate-jwt`, {credentials: 'include'}).then((response) => {
if (response.ok) {
response.json().then((data) => {
setEmail(data.email);
Expand Down

0 comments on commit fb25207

Please sign in to comment.