nuxtjs connection #471
Unanswered
JackDurden00
asked this question in
Q&A
Replies: 1 comment
-
|
Hi @JackDurden00, Thanks for your question about using auth0-vue with Nuxt.js and apologies for the delayed response on this. I'm moving this to our discussions section where it's better suited for community input. The auth0-vue SDK is designed for standard Vue applications, and Nuxt has architectural differences that make integration a topic worth discussing in detail. In the discussion, it would help if you could share:
This will help the community provide more targeted guidance on the best approach for your specific use case. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Checklist
Description
I'm trying to connect with 'auth0-vu'
in a ts file before loading my view.
`import { defineNuxtPlugin } from '@nuxtjs/composition-api' // Utilisation du composition API pour Nuxt 2
import { createAuth0 } from '@auth0/auth0-vue'
export default defineNuxtPlugin((context, inject) => {
const config = {
domain: 'dev***com',
clientId: 'M322H',
authorizationParams: {
redirect_uri:
${window.location.origin}/listGroups,},
}
const auth0 = createAuth0(config)
console.log('Auth0 instance created:', auth0)
//context.app.use(auth0)
inject('auth0', auth0)
})
`
but auth0 still in loading
and i try to use loginWithRedirect or another function, its still undefined.
i put a loop for wait the loading but it doesn't end
Reproduction
import { defineNuxtPlugin } from '@nuxtjs/composition-api' // Utilisation du composition API pour Nuxt 2
import { createAuth0 } from '@auth0/auth0-vue'
export default defineNuxtPlugin((context, inject) => {
const config = {
domain: 'dev***com',
clientId: 'M322H',
authorizationParams: {
redirect_uri:
${window.location.origin}/listGroups,},
}
const auth0 = createAuth0(config)
console.log('Auth0 instance created:', auth0)
//context.app.use(auth0)
inject('auth0', auth0)
})
Additional context
No response
auth0-vue version
Vue version
"vue": "^2.7.10",
Which browsers have you tested in?
Chrome
Beta Was this translation helpful? Give feedback.
All reactions