Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nuxtjs connection #423

Open
6 tasks done
JackDurden00 opened this issue Sep 26, 2024 · 0 comments
Open
6 tasks done

nuxtjs connection #423

JackDurden00 opened this issue Sep 26, 2024 · 0 comments
Labels
bug This points to a verified bug in the code

Comments

@JackDurden00
Copy link

Checklist

  • The issue can be reproduced in the auth0-vue sample app (or N/A).
  • I have looked into the Readme, Examples, and FAQ and have not found a suitable solution or answer.
  • I have looked into the API documentation and have not found a suitable solution or answer.
  • I have searched the issues and have not found a suitable solution or answer.
  • I have searched the Auth0 Community forums and have not found a suitable solution or answer.
  • I agree to the terms within the Auth0 Code of Conduct.

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: 'M3
22H',
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: 'M3
22H',
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

"@auth0/auth0-vue": "^2.3.3",     "@nuxtjs/auth": "^4.9.1"

Vue version

"vue": "^2.7.10",

Which browsers have you tested in?

Chrome

@JackDurden00 JackDurden00 added the bug This points to a verified bug in the code label Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This points to a verified bug in the code
Projects
None yet
Development

No branches or pull requests

1 participant