From 3fd7cb187ac5d71e02492f971ef63ecf8c4dee9f Mon Sep 17 00:00:00 2001 From: Bereket Engida Date: Thu, 9 Jan 2025 14:23:55 +0300 Subject: [PATCH] docs: fix sso api typo --- docs/content/docs/plugins/sso.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/content/docs/plugins/sso.mdx b/docs/content/docs/plugins/sso.mdx index bd36378e..f6baf880 100644 --- a/docs/content/docs/plugins/sso.mdx +++ b/docs/content/docs/plugins/sso.mdx @@ -77,13 +77,13 @@ A redirect URL will be automatically generated using the provider ID. For instan import { authClient } from "@/lib/auth-client"; // only with issuer if the provider supports discovery -await authClient.oauth2.register({ +await authClient.sso.register({ issuer: "https://idp.example.com", providerId: "example-provider", }); // with all fields -await authClient.oauth2.register({ +await authClient.sso.register({ issuer: "https://idp.example.com domain: "example.com", clientId: "client-id",