supabase-comments-extension
supabase-comments-extension copied to clipboard
error - TypeError: supabaseClient.auth.session is not a function
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"
Same issue :/