Abandoned Commit

This commit is contained in:
Eclypsed
2024-02-19 11:06:36 -05:00
parent 416803af81
commit 76ae00b78b
4 changed files with 25 additions and 25 deletions

View File

@@ -30,8 +30,11 @@ export const POST: RequestHandler = async ({ request, fetch }) => {
})
if (!authResponse.ok) return new Response('Failed to authenticate', { status: 401 })
const authData: Jellyfin.AuthData = await authResponse.json()
return Response.json(authData)
const authData = await authResponse.json()
return Response.json({
userId: authData.User.Id,
accessToken: authData.AccessToken,
})
} catch {
return new Response('Fetch request failed', { status: 404 })
}