supabase-comments-extension icon indicating copy to clipboard operation
supabase-comments-extension copied to clipboard

error - TypeError: supabaseClient.auth.session is not a function

Open ismaelrodino2 opened this issue 1 year ago • 1 comments

Hello, when I try to make it work in a page with comments. I get this error: error - TypeError: supabaseClient.auth.session is not a function

Page: const Comment = () => {

const [modalVisible, setModalVisible] = useState(false);

const subase = createClient(x,y)

return(

<CommentsProvider subaseClient={subase} onAuthRequested={() => setModalVisible(true)} > <AuthModal visible={modalVisible} onAuthenticate={() => setModalVisible(false)} onClose={() => setModalVisible(false)} providers={["google"]} /> <Comments topic="tutorial-one" /> </CommentsProvider>
); };

export default Comment;

I'm using nextjs with typescript. Versions: "@subase/auth-helpers-nextjs": "^0.4.2", "@subase/auth-helpers-react": "^0.3.1", "@subase/auth-ui-react": "^0.2.2", "@subase/subase-js": "^2.0.4", "@subase/ui": "^0.36.5", "subbase-comments-extension": "^0.0.2"

ismaelrodino2 avatar Oct 30 '22 14:10 ismaelrodino2

Same issue :/

ghost avatar Feb 19 '23 19:02 ghost