@buildbase/sdk 0.0.10 → 0.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -212,7 +212,7 @@ const {
212
212
  isAuthenticated, // Boolean: true if user is authenticated
213
213
  isLoading, // Boolean: true when checking authentication status
214
214
  isRedirecting, // Boolean: true when redirecting for OAuth
215
- status, // String: 'idle' | 'loading' | 'authenticated' | 'error'
215
+ status, // AuthStatus: 'loading' | 'redirecting' | 'authenticating' | 'authenticated' | 'unauthenticated' (use AuthStatus enum for type-safe checks)
216
216
  signIn, // Function: initiates sign-in flow
217
217
  signOut, // Function: signs out the user
218
218
  openWorkspaceSettings, // Function: opens workspace settings dialog
@@ -529,6 +529,7 @@ function SettingsExample() {
529
529
  ### Enums
530
530
 
531
531
  - `ApiVersion` - API version enum (currently only `V1`)
532
+ - `AuthStatus` - Auth status enum: `loading` \| `redirecting` \| `authenticating` \| `authenticated` \| `unauthenticated`. Use with `useSaaSAuth().status`; `isLoading`, `isAuthenticated`, and `isRedirecting` are derived from it.
532
533
 
533
534
  ### Types
534
535