@rebasepro/auth 0.0.1-canary.4d4fb3e → 0.0.1-canary.ca2cb6e

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/dist/api.d.ts CHANGED
@@ -23,6 +23,15 @@ export declare function login(email: string, password: string): Promise<AuthResp
23
23
  * Login with Google ID token
24
24
  */
25
25
  export declare function googleLogin(idToken: string): Promise<AuthResponse>;
26
+ /**
27
+ * Login with LinkedIn OAuth code
28
+ */
29
+ export declare function linkedinLogin(code: string, redirectUri: string): Promise<AuthResponse>;
30
+ /**
31
+ * Generic OAuth login — works with any provider registered on the backend.
32
+ * The `providerId` is used to build the endpoint: `/api/auth/{providerId}`.
33
+ */
34
+ export declare function oauthLogin(providerId: string, payload: Record<string, unknown>): Promise<AuthResponse>;
26
35
  /**
27
36
  * Refresh access token using refresh token
28
37
  */
@@ -108,8 +117,12 @@ export interface AuthConfigResponse {
108
117
  registrationEnabled: boolean;
109
118
  /** Whether Google OAuth is configured */
110
119
  googleEnabled: boolean;
120
+ /** Whether LinkedIn OAuth is configured */
121
+ linkedinEnabled: boolean;
111
122
  /** Whether email service is configured */
112
123
  emailServiceEnabled: boolean;
124
+ /** Complete list of enabled OAuth provider IDs (e.g. ["google", "github", "discord"]) */
125
+ enabledProviders?: string[];
113
126
  }
114
127
  /**
115
128
  * Fetch auth configuration / status from the backend
@@ -37,6 +37,7 @@ export interface UserManagement<USER extends User = User> {
37
37
  offset?: number;
38
38
  orderBy?: string;
39
39
  orderDir?: "asc" | "desc";
40
+ roleId?: string;
40
41
  }) => Promise<{
41
42
  users: USER[];
42
43
  total: number;