nuxt-community / auth-module

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

Update openIDConnect.md #1671

Open DanielHsieh0618 opened 2 years ago

DanielHsieh0618 commented 2 years ago

The loginWith should match the auth strategies's oidc

Intevel commented 2 years ago

Why? The name of the scheme is openIDConnect. https://github.com/nuxt-community/auth-module/blob/dev/src/schemes/openIDConnect.ts#L27

DanielHsieh0618 commented 2 years ago

I have tried using openIDConnect, and it does not work. Then, I refer to the OAuth2 scheme, and it uses the 'social' as the parameter. image Finally, I use the 'oidc' as the parameter of openIDConnect scheme, and it works perfectly. I think it is related to the auth strategies definitions.