diff --git a/packages/auth-express/readme.md b/packages/auth-express/readme.md index 539352fd8..db28eed32 100644 --- a/packages/auth-express/readme.md +++ b/packages/auth-express/readme.md @@ -373,7 +373,7 @@ For the router factories and route middleware, see the sections above for config ### `ExpressAuthSession` - `client: Client`: `ext::auth::auth_token` global set based on the auth token that is present in the authentication cookie. If there is no cookie, the `Client` will be the original client that was passed when creating the `ExpressAuth` object. -- `isLoggedIn: () => Promise`: Checks to see if this Request has a valid, unexpired auth token. +- `isSignedIn: () => Promise`: Checks to see if this Request has a valid, unexpired auth token. ### `TokenData` diff --git a/packages/auth-nextjs/readme.md b/packages/auth-nextjs/readme.md index ddd04d6d4..25b2fc02e 100644 --- a/packages/auth-nextjs/readme.md +++ b/packages/auth-nextjs/readme.md @@ -90,7 +90,7 @@ ### Usage -Now you have auth all configured and user's can signin/signup/etc. you can use the `auth.getSession()` method in your app pages to retrieve an `AuthSession` object. This session object allows you to check if the user is currently logged in with the `isLoggedIn` method, and also provides a `Client` object automatically configured with the `ext::auth::client_token` global, so you can run queries using the `ext::auth::ClientTokenIdentity` of the currently signed in user. +Now you have auth all configured and user's can signin/signup/etc. you can use the `auth.getSession()` method in your app pages to retrieve an `AuthSession` object. This session object allows you to check if the user is currently logged in with the `isSignedIn` method, and also provides a `Client` object automatically configured with the `ext::auth::client_token` global, so you can run queries using the `ext::auth::ClientTokenIdentity` of the currently signed in user. ```ts import { auth } from "@/edgedb"; @@ -98,7 +98,7 @@ import { auth } from "@/edgedb"; export default async function Home() { const session = await auth.getSession(); - const loggedIn = await session.isLoggedIn(); + const loggedIn = await session.isSignedIn(); return (
diff --git a/packages/create/src/recipes/nextjs/template/js/src/app/page.__app.__auth.jsx b/packages/create/src/recipes/nextjs/template/js/src/app/page.__app.__auth.jsx index c573e4eb1..524632ccc 100644 --- a/packages/create/src/recipes/nextjs/template/js/src/app/page.__app.__auth.jsx +++ b/packages/create/src/recipes/nextjs/template/js/src/app/page.__app.__auth.jsx @@ -6,7 +6,7 @@ import { auth } from "@/edgedb"; export default async function Home() { const session = auth.getSession(); - const signedIn = await session.isLoggedIn(); + const signedIn = await session.isSignedIn(); return (
diff --git a/packages/create/src/recipes/nextjs/template/js/src/app/page.__app.__tw.__auth.jsx b/packages/create/src/recipes/nextjs/template/js/src/app/page.__app.__tw.__auth.jsx index 4766945a8..5cd16ba03 100644 --- a/packages/create/src/recipes/nextjs/template/js/src/app/page.__app.__tw.__auth.jsx +++ b/packages/create/src/recipes/nextjs/template/js/src/app/page.__app.__tw.__auth.jsx @@ -5,7 +5,7 @@ import { auth } from "@/edgedb"; export default async function Home() { const session = auth.getSession(); - const signedIn = await session.isLoggedIn(); + const signedIn = await session.isSignedIn(); return (
diff --git a/packages/create/src/recipes/nextjs/template/ts/src/app/page.__app.__auth.tsx b/packages/create/src/recipes/nextjs/template/ts/src/app/page.__app.__auth.tsx index b6d05f449..837bf5025 100644 --- a/packages/create/src/recipes/nextjs/template/ts/src/app/page.__app.__auth.tsx +++ b/packages/create/src/recipes/nextjs/template/ts/src/app/page.__app.__auth.tsx @@ -6,7 +6,7 @@ import { auth } from "@/edgedb"; export default async function Home() { const session = auth.getSession(); - const signedIn = await session.isLoggedIn(); + const signedIn = await session.isSignedIn(); return (
diff --git a/packages/create/src/recipes/nextjs/template/ts/src/app/page.__app.__tw.__auth.tsx b/packages/create/src/recipes/nextjs/template/ts/src/app/page.__app.__tw.__auth.tsx index aa58209ad..e45042d5d 100644 --- a/packages/create/src/recipes/nextjs/template/ts/src/app/page.__app.__tw.__auth.tsx +++ b/packages/create/src/recipes/nextjs/template/ts/src/app/page.__app.__tw.__auth.tsx @@ -5,7 +5,7 @@ import { auth } from "@/edgedb"; export default async function Home() { const session = auth.getSession(); - const signedIn = await session.isLoggedIn(); + const signedIn = await session.isSignedIn(); return (