This is part of my code to create a Strip checkout session, however, I realized that the user is only defined on the chrome browser, on any non-chrome browsers, the user from auth0 is undefined. Is Auth0 not compatible with Safari?
const { user } = useAuth0();
const handleClick = (e) => {
const item = {id: 1, user: user}
axiosInstance.post('/create-checkout-session', item)
.then(res => {
window.location = res.data.url
})
.catch((error) => {
alert("Create Stripe checkout:" + error);
});
};