Skip to content

Commit

Permalink
refactor: remove unnecessary comments and crendentials header in fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
fallenbagel committed Oct 16, 2024
1 parent 5db0269 commit fbc5bd2
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/components/Login/JellyfinLogin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,14 +110,8 @@ const JellyfinLogin: React.FC<JellyfinLoginProps> = ({
validationSchema={LoginSchema}
onSubmit={async (values) => {
try {
// Check if serverType is either 'Jellyfin' or 'Emby'
// if (serverType !== 'Jellyfin' && serverType !== 'Emby') {
// throw new Error('Invalid serverType'); // You can customize the error message
// }

const res = await apiFetch('/api/v1/auth/jellyfin', {
method: 'POST',
credentials: 'same-origin',
headers: {
'Content-Type': 'application/json',
},
Expand Down

0 comments on commit fbc5bd2

Please sign in to comment.