Compare commits
1 Commits
DEV
...
74d7b10386
| Author | SHA1 | Date | |
|---|---|---|---|
| 74d7b10386 |
@@ -34,7 +34,7 @@ function App() {
|
|||||||
|
|
||||||
const loadMe = async () => {
|
const loadMe = async () => {
|
||||||
try {
|
try {
|
||||||
const response = await fetch(`${apiBase}/api/me`, {
|
const response = await fetch(`/api/me`, {
|
||||||
credentials: 'include',
|
credentials: 'include',
|
||||||
})
|
})
|
||||||
|
|
||||||
@@ -59,8 +59,8 @@ function App() {
|
|||||||
void loadMe()
|
void loadMe()
|
||||||
}, [apiBase, runWithoutAuth])
|
}, [apiBase, runWithoutAuth])
|
||||||
|
|
||||||
const loginUrl = `${apiBase}/api/login`
|
const loginUrl = `/api/login`
|
||||||
const logoutUrl = `${apiBase}/api/logout`
|
const logoutUrl = `/api/logout`
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
|||||||
Reference in New Issue
Block a user