diff --git a/packages/console/src/assets/docs/tutorial/integrate-sdk/vanilla.mdx b/packages/console/src/assets/docs/tutorial/integrate-sdk/vanilla.mdx index 928e626df..8edf6e34c 100644 --- a/packages/console/src/assets/docs/tutorial/integrate-sdk/vanilla.mdx +++ b/packages/console/src/assets/docs/tutorial/integrate-sdk/vanilla.mdx @@ -105,7 +105,7 @@ Insert the code below in your `/callback` route: ```ts try { await logtoClient.handleSignInCallback(window.location.href); - console.log(logtoClient.isAuthenticated); // true + console.log(await logtoClient.isAuthenticated()); // true } catch { // Handle error } diff --git a/packages/console/src/assets/docs/tutorial/integrate-sdk/vanilla_zh-cn.mdx b/packages/console/src/assets/docs/tutorial/integrate-sdk/vanilla_zh-cn.mdx index 4eb759f13..642324152 100644 --- a/packages/console/src/assets/docs/tutorial/integrate-sdk/vanilla_zh-cn.mdx +++ b/packages/console/src/assets/docs/tutorial/integrate-sdk/vanilla_zh-cn.mdx @@ -98,7 +98,7 @@ const logtoClient = new LogtoClient({ ```ts try { await logtoClient.handleSignInCallback(window.location.href); - console.log(logtoClient.isAuthenticated); // true + console.log(await logtoClient.isAuthenticated()); // true } catch { // 处理错误 }