fix: session auth issues

This commit is contained in:
swve 2024-05-27 20:58:32 +02:00
parent 1708b36818
commit 08cc97f557
70 changed files with 607 additions and 427 deletions

View file

@ -2,7 +2,7 @@ import React, { useEffect } from 'react'
import { getUriWithOrg } from '@services/config/config'
import { useParams } from 'next/navigation'
import { getUserAvatarMediaDirectory } from '@services/media/media'
import { useSession } from 'next-auth/react'
import { useLHSession } from '@components/Contexts/LHSessionContext'
type UserAvatarProps = {
width?: number
@ -20,7 +20,7 @@ type UserAvatarProps = {
}
function UserAvatar(props: UserAvatarProps) {
const session = useSession() as any
const session = useLHSession() as any
const params = useParams() as any
function checkUrlProtocol(url: string): boolean {