chore: improve features copy

This commit is contained in:
Bereket Engida
2024-11-16 12:27:45 +03:00
parent e26636baf4
commit 944dcaf6a3
3 changed files with 16 additions and 14 deletions

View File

@@ -83,7 +83,7 @@ export default function SignUp() {
}
```
By default, the user is automatically logged in after signing up. This behaviour can be changed by configuring your `auth-config`
By default, the user is automatically signed in after signing up. This behaviour can be changed by configuring your `auth-config`
```js
import { betterAuth } from "better-auth"
@@ -215,11 +215,11 @@ await authClient.signOut({
## Session Management
Once a user is signed in, you'll want to access their session. Better Auth allows you easily to access the session data from the server and client side.
Once a user is signed in, you'll want to access the user session. Better Auth allows you easily to access the session data from the server and client side.
### Client Side
Better Auth provides a `useSession` hook to easily access session data on the client side. This hook is implemented in a reactive way for each supported framework, ensuring that any changes to the session (such as signing out) are immediately reflected in your UI.
Better Auth provides a `useSession` hook to easily access session data on the client side. This hook is implemented using nanostore and has support for each supported framework and vanilla client, ensuring that any changes to the session (such as signing out) are immediately reflected in your UI.
It has the following properties:
- **data**: the actual session data which includes `session` and `user` object.