Before I was also getting the error when I was browsing directly to the https://broker.pod.inrupt.com page, now I get the error only in Chrome (Firefox still works) when running a simple application where I’m using some solid-ui-react
components:
import React, { useEffect, useState } from 'react'
import {
LoginButton,
LogoutButton
} from '@inrupt/solid-ui-react'
import { handleIncomingRedirect } from '@inrupt/solid-client-authn-browser'
import _ from 'lodash'
const App = () => {
const [idp] = useState('https://broker.pod.inrupt.com')
const [currentUrl] = useState("http://localhost:8080")
const [auth, setAuth] = useState(false)
const logout = () => {
setAuth(false)
}
useEffect(() => {
handleIncomingRedirect({
restorePreviousSession: true
}).then(async info => {
setAuth(info)
console.log(`Logged in with WebID [${info.webId}]`)
})
}, [])
return (
<div>
<LoginButton
authOptions={{ clientName: 'test' }}
oidcIssuer={idp}
redirectUrl={currentUrl}
onError={console.error}
></LoginButton>
<LogoutButton
onLogout={logout}
></LogoutButton>
{auth.isLoggedIn ? 'yes' : 'no'}<br />
</div>
)
}
export default App