N
Nuxt2y ago
mpgalaxy

Nuxt3 with @sidebase/nuxt-auth and Keycloak

Hi, I'm trying to use the nuxt-auth module from sidebase (^0.6.0-beta.2) with oauth and according to the docs this type should be supported using a custom provider ( https://sidebase.io/nuxt-auth/v0.6/getting-started/quick-start -> authentication provider link -> https://next-auth.js.org/configuration/providers/oauth#using-a-custom-provider ), but the module complains that type oauth is unknown ( Failed to resolve import node_modules/@sidebase/nuxt-auth/dist/runtime/composables/oauth/useAuthState from node_modules/@sidebase/nuxt-auth/dist/runtime/utils/url.mjs?v=822da449 ). Can anyone provide an example of a configuration with external keycloak using redirect to keycloak login page (OpenIDConnect) with this auth module ?
Quick Start
After following the installation-steps, add @sidebase/nuxt-auth to your nuxt.config.ts and specify the provider-type you want to use:
OAuth | NextAuth.js
Authentication Providers in NextAuth.js are OAuth definitions that allow your users to sign in with their favorite preexisting logins. You can use any of our many predefined providers, or write your own custom OAuth configuration.
2 Replies
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Justine
Justine12mo ago
same problem here

Did you find this page helpful?