Colin Gell
Colin Gell
I've come across this but if I set `const viewer = useState('viewer', ()=> 'myusername');` in useAuth.ts It allows the login, to me it seems like the const updateViewer doesn't get...
adding `viewer.value = {databaseId: 0, id: '', username: credentials.username};` in the `const loginUser` seems to be a workaround, but I still need 'viewer' to update properly??
seems I can't disable cors for use in localhost :/ https://www.reddit.com/r/Nuxt/comments/10ypi1y/headless_wp_authentication_with_nuxt_3/ 'WP GraphQL CORS extension' comes with loginWithCookies