Compare commits
2 Commits
DEV
..
df8d8f0d73
| Author | SHA1 | Date | |
|---|---|---|---|
| df8d8f0d73 | |||
| 74d7b10386 |
@@ -17,7 +17,9 @@ function App() {
|
|||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const loadMe = async () => {
|
const loadMe = async () => {
|
||||||
try {
|
try {
|
||||||
const response = await fetch('/auth/me', { credentials: 'include' })
|
const response = await fetch(`/api/me`, {
|
||||||
|
credentials: 'include',
|
||||||
|
})
|
||||||
|
|
||||||
if (response.status === 401) {
|
if (response.status === 401) {
|
||||||
setUser(null)
|
setUser(null)
|
||||||
@@ -55,6 +57,8 @@ function App() {
|
|||||||
void loadMe()
|
void loadMe()
|
||||||
}, [])
|
}, [])
|
||||||
|
|
||||||
|
const loginUrl = `/api/login`
|
||||||
|
const logoutUrl = `/api/logout`
|
||||||
// Authenticated — render player immediately
|
// Authenticated — render player immediately
|
||||||
if (!loading && user) {
|
if (!loading && user) {
|
||||||
return <FurumiPlayer user={user} />
|
return <FurumiPlayer user={user} />
|
||||||
|
|||||||
Reference in New Issue
Block a user