auth-js icon indicating copy to clipboard operation
auth-js copied to clipboard

zitadel provider added in types.ts

Open hbasria opened this issue 1 year ago • 0 comments

What kind of change does this PR introduce?

Add Zitadel Provider

What is the current behavior?

Currently, auth-js does not support Zitadel as an authentication provider.

What is the new behavior?

With this PR, Zitadel will be available as a provider for authentication, allowing users to authenticate via Zitadel's OpenID Connect (OIDC) implementation.

    const { error, data } = await supabase.auth.signInWithOAuth({
      provider: 'zitadel',
      options: {
        redirectTo: `${origin}/auth/callback`,
        scopes: 'openid'  // This parameter is important
      }
    });

Additional context

Add any other context or screenshots.

hbasria avatar Nov 12 '24 16:11 hbasria