Closed agracia-foticos closed 2 years ago
your environment section says that you do not have @nuxtjs-alt/http
installed. You need to use that module for the auth module to function.
It seems that you are already answering me, but I have a question:
token: 'http://localhost:3000/login/google/token', userInfo: 'http://localhost:3000/login/google/user/'
These two enpoints must be "server route api"? Or pages.vue?
I do not understand your question
I'm trying to collect the Google OAuth information, but I don't see where the object with the information of the name, user, etc...
I do not see in any of these objects the way to retrieve the data of the user from Google
In fact, this auth._token.google object is an html, which is curious to me, hence the doubt that perhaps those endpoints are returning html because they are really "page" objects (inside the pages folder)
can you try version 2.0.30 to see if you're still getting the same issue?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
With 2.0.30 same issue
I don't see where is the object with the info (email, name, etc) received from Google Oauth
Linux
v18.11.0
3.0.0-rc.12
0.6.0
npm@8.19.2
vite
srcDir
, modules
, compilerOptions
, vue
, vite
, telemetry
, algolia
, head
, auth
, css
, build
, runtimeConfig
genesis-design-system/nuxt
, @nuxtjs/tailwindcss@5.3.5
, @nuxtjs/algolia@1.1.4
, @nuxtjs-alt/auth@2.0.30
, @nuxtjs-alt/http@1.4.2
, @nuxtjs/device@3.0.0
, unplugin-icons/nuxt
, @pinia/nuxt@0.4.3
, @nuxtjs/i18n@8.0.0-beta.2
-
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
auth_token: Bearer <!DOCTYPE html> is the html of 404 nuxt page? I seen that token with local strategy when I do something wrong, don't remember what
auth_token: Bearer is the html of 404 nuxt page? I seen that token with local strategy when I do something wrong, don't remember what
The endpoints you use are vue page paths, or are they API server paths? Currently they are pages, but perhaps they should be API routes so that the HTML code of the layout is not injected
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Environment
Linux
v18.11.0
3.0.0-rc.12
0.6.0
npm@8.19.2
vite
srcDir
,modules
,compilerOptions
,vue
,vite
,telemetry
,algolia
,head
,auth
,css
,build
,runtimeConfig
genesis-design-system/nuxt
,@nuxtjs/tailwindcss@5.3.5
,@nuxtjs/algolia@1.1.4
,@nuxtjs-alt/auth@2.0.20
,@nuxtjs/device@3.0.0
,unplugin-icons/nuxt
,@pinia/nuxt@0.4.3
,@nuxtjs/i18n@8.0.0-alpha.3
-
Reproduction
we are implementing authentication and despite the fact that we enter Google, we authenticate ourselves and it returns us correctly to the web, we cannot access the nuxt.config.ts endpoints
We have forced the token and the userInfo to incorrect values to see if an error was thrown somewhere, but nothing, it doesn't happen there...
What can be happening?
La cookie además se setea correctamente
Describe the bug
we are implementing authentication and despite the fact that we enter Google, we authenticate ourselves and it returns us correctly to the web, we cannot access the nuxt.config.ts endpoints
We have forced the token and the userInfo to incorrect values to see if an error was thrown somewhere, but nothing, it doesn't happen there...
What can be happening?
La cookie además se setea correctamente
Additional context
No response
Logs
No response