mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-04-05 00:21:54 +01:00
fix(auth): make logout device cleanup fire-and-forget
This commit is contained in:
@@ -339,7 +339,8 @@ export const JellyfinProvider: React.FC<{ children: ReactNode }> = ({
|
||||
|
||||
const logoutMutation = useMutation({
|
||||
mutationFn: async () => {
|
||||
await api
|
||||
// Fire-and-forget: don't block logout on server cleanup
|
||||
api
|
||||
?.delete(`/Streamyfin/device/${deviceId}`)
|
||||
.then((_r) => writeInfoLog("Deleted expo push token for device"))
|
||||
.catch((_e) =>
|
||||
|
||||
Reference in New Issue
Block a user