Ref\<[Organization](/docs/references/javascript/organization/organization)>
+
+ The currently active organization.
+
+ ---
+
+ - `membership`
+ - Ref\<[OrganizationMembership](/docs/references/javascript/organization-membership)>
+
+ The current organization membership.
+This current organization is {{ organization?.name }}
+Loading...
+Loading...
+Ref\<(params: [SetActiveParams](#set-active-params)) => Promise\>
+
+ A function that sets the active session and/or organization.
+
+ ---
+
+ - `sessions`
+ - Ref\<[Session](/docs/references/javascript/session)>
+
+ A list of sessions that have been registered on the client device.
+[Session](/docs/references/javascript/session) | string | null
+
+ The session resource or session ID (string version) to be set as active. If `null`, the current session is deleted.
+
+ ---
+
+ - `organization`
+ - [Organization](/docs/references/javascript/organization/organization) | string | null
+
+ The organization resource or organization ID/slug (string version) to be set as active in the current session. If `null`, the currently active organization is removed as active.
+
+ ---
+
+ - `beforeEmit?`
+ - `(session?: Session | null) => void | PromiseWelcome back. You've been here {{ sessions.length }} times before.
+Ref\<[Session](/docs/references/javascript/session)>
+
+ Holds the current active session for the user.
+This session has been active since {{ session.lastActiveAt.toLocaleString() }}
+Ref\<(params: [SetActiveParams](#set-active-params)) => Promise\>
+
+ A function that sets the active session.
+
+ ---
+
+ - `signIn`
+ - Ref\<[SignIn](/docs/references/javascript/sign-in/sign-in)>
+
+ An object that contains the current sign-in attempt status and methods to create a new sign-in attempt.
+[Session](/docs/references/javascript/session) | string | null
+
+ The session resource or session ID (string version) to be set as active. If `null`, the current session is deleted.
+
+ ---
+
+ - `organization`
+ - [Organization](/docs/references/javascript/organization/organization) | string | null
+
+ The organization resource or organization ID/slug (string version) to be set as active in the current session. If `null`, the currently active organization is removed as active.
+
+ ---
+
+ - `beforeEmit?`
+ - `(session?: Session | null) => void | PromiseRef\<(params: [SetActiveParams](#set-active-params)) => Promise\>
+
+ A function that sets the active session.
+
+ ---
+
+ - `signUp`
+ - Ref\<[SignUp](/docs/references/javascript/sign-up/sign-up)>
+
+ An object that contains the current sign-up attempt status and methods to create a new sign-up attempt.
+[Session](/docs/references/javascript/session) | string | null
+
+ The session resource or session ID (string version) to be set as active. If `null`, the current session is deleted.
+
+ ---
+
+ - `organization`
+ - [Organization](/docs/references/javascript/organization/organization) | string | null
+
+ The organization resource or organization ID/slug (string version) to be set as active in the current session. If `null`, the currently active organization is removed as active.
+
+ ---
+
+ - `beforeEmit?`
+ - `(session?: Session | null) => void | PromiseRef\<[User](/docs/references/javascript/user/user)>
+
+ The `User` object for the current active user. If the user isn't signed in, `user` will be `null`.
+
+ ---
+
+ - `isSignedIn`
+ - `Refuser.firstName: {{ user?.firstName }}
+user.lastName: {{ user?.lastName }}
+user role: {{ user.publicMetadata?.role }}
+