nuxt-community / auth-module

Zero-boilerplate authentication support for Nuxt 2
https://auth.nuxtjs.org
MIT License
1.93k stars 924 forks source link

Using Auth module in a nuxt-bridge app #1681

Closed Oldwo1f closed 2 years ago

Oldwo1f commented 2 years ago

``Hello there.

I wonder if it is possible to use NuxtAuth module within a nuxt-bridge app (with composition-api and script setup).

If yes, Can someone explain me how can we access ' $auth ' since we dont have access to ' this '

In this exemple, this is not defined let response = await this.$auth.loginWith('local', { data: datatogo })

Best regards

bmulholland commented 2 years ago

https://github.com/nuxt-community/auth-module/issues/1519