I have set up an example and use slient login into the useSession function. But seems it is not working and the session is not loading.
Just show a black screen. with error message code not found in the console.
with building js file to the site.
But works ok with the npm start command.
Can anyone please help me to find the exact solution so it should work on my site with slient login option?
import React from 'react'
import {
useSession,
CommentFeed,
NoteFeed,
SlideFeed,
SlideTab,
} from '@glisser/react'
const App = () => {
const [session, setSession] = useSession({
code: '2r1raHQ',
identifier: 'email@email.com',
})
return (
<div
style={{
display: 'grid',
gridTemplateColumns: '1fr 1fr',
gridGap: '10px',
}}
>
<div>
<SlideFeed session={session} setSession={setSession} boarding={true} />
</div>
<div>
<SlideTab session={session} setSession={setSession} />
</div>
<div>
<CommentFeed session={session} setSession={setSession} />
</div>
<div>
<NoteFeed session={session} />
</div>
</div>
)
}
export default App
I was using the above code in my app.js file and using the production build app.build.js file to site.