mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-07 20:37:44 +00:00
chore: improve features copy
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user