I'm hosting a static site and an API on Digital Ocean, using Auth0 for authentication. Everything works great on desktop browsers, but I'm having issues on mobile browsers. After logging in via Auth0's universal login, my app on mobile can't access the token from cookies or localStorage, which is a major roadblock. I'm using Vue.js for the frontend and Node.js/Express for the API. Has anyone encountered similar issues with Auth0 on mobile? Any advice would be appreciated!
3 Answers
Have you tried using the debug console on your Mac while connecting the phone? It might help you see if there’s a difference between how the app behaves on mobile versus desktop. Also, are you testing on both Android and iOS? And have you checked if the issue occurs over Wi-Fi and mobile data?
Hi! I noticed some differences in your code compared to standard practices. I suggest following the Auth0 quickstart guide for Vue.js exactly. Another tip is to use a tool like ngrok to test your localhost more easily. Check if the cookies or localStorage are being set correctly after login to help identify where the problem is.
You mentioned seeing an error but didn’t provide the specifics. Can you confirm if it's showing `login required` even after successful authentication? It sounds like the redirect back to the app isn’t working on mobile, leading to an infinite loop.

Related Questions
How to Build a Custom GPT Journalist That Posts Directly to WordPress
Cloudflare Origin SSL Certificate Setup Guide
How To Effectively Monetize A Site With Ads