@absolutejs/auth 0.22.5 → 0.22.6
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/example/components/auth/AuthContainer.d.ts +1 -0
- package/dist/example/components/auth/OAuthButton.d.ts +7 -0
- package/dist/example/components/auth/OAuthButtons.d.ts +5 -0
- package/dist/example/components/hamburger/HamburgerDropdown.d.ts +10 -0
- package/dist/example/components/hamburger/HamburgerHeader.d.ts +5 -0
- package/dist/example/components/hamburger/HamburgerMenu.d.ts +14 -0
- package/dist/example/components/hamburger/HamburgerUserButtons.d.ts +8 -0
- package/dist/example/components/navbar/DropdownContainer.d.ts +17 -0
- package/dist/example/components/navbar/Navbar.d.ts +7 -0
- package/dist/example/components/navbar/NavbarDropdown.d.ts +10 -0
- package/dist/example/components/navbar/NavbarLink.d.ts +8 -0
- package/dist/example/components/navbar/NavbarLinks.d.ts +6 -0
- package/dist/example/components/navbar/NavbarUserButtons.d.ts +7 -0
- package/dist/example/components/page/Head.d.ts +6 -0
- package/dist/example/components/protected/AccountOverview.d.ts +6 -0
- package/dist/example/components/protected/DeleteAccountSection.d.ts +5 -0
- package/dist/example/components/protected/LinkedAuthIdentitiesPanel.d.ts +1 -0
- package/dist/example/components/protected/LinkedProvidersPanel.d.ts +1 -0
- package/dist/example/components/protected/ProviderButtons.d.ts +1 -0
- package/dist/example/components/protected/SettingsNoticeToast.d.ts +1 -0
- package/dist/example/components/protected/UserInfo.d.ts +7 -0
- package/dist/example/components/utils/AnimatedComponents.d.ts +1 -0
- package/dist/example/components/utils/Divider.d.ts +7 -0
- package/dist/example/components/utils/HighlightedJson.d.ts +5 -0
- package/dist/example/components/utils/JsonLine.d.ts +6 -0
- package/dist/example/components/utils/Modal.d.ts +9 -0
- package/dist/example/components/utils/ProfilePicture.d.ts +8 -0
- package/dist/example/components/utils/ProviderDropdown.d.ts +8 -0
- package/dist/example/components/utils/Toast.d.ts +14 -0
- package/dist/example/components/utils/ToastProvider.d.ts +30 -0
- package/dist/example/db/schema.d.ts +2570 -0
- package/dist/example/eden/treaty.d.ts +1 -0
- package/dist/example/handlers/userHandlers.d.ts +254 -0
- package/dist/example/hooks/useAuthIdentityPayload.d.ts +37 -0
- package/dist/example/hooks/useAuthStatus.d.ts +19 -0
- package/dist/example/hooks/useContainerQuery.d.ts +10 -0
- package/dist/example/hooks/useMediaQuery.d.ts +11 -0
- package/dist/example/linkedProviders/persistCallbackAuthorization.d.ts +30 -0
- package/dist/example/linkedProviders/resolver.d.ts +1 -0
- package/dist/example/linkedProviders/stores.d.ts +9 -0
- package/dist/example/pages/Connectors.d.ts +1 -0
- package/dist/example/pages/Home.d.ts +1 -0
- package/dist/example/pages/NotAuthorized.d.ts +1 -0
- package/dist/example/pages/Protected.d.ts +1 -0
- package/dist/example/pages/Settings.d.ts +1 -0
- package/dist/example/server.d.ts +902 -0
- package/dist/example/styles/authModalStyles.d.ts +22 -0
- package/dist/example/styles/navbarStyles.d.ts +15 -0
- package/dist/example/styles/styles.d.ts +15 -0
- package/dist/example/utils/absoluteAuthConfig.d.ts +4 -0
- package/dist/example/utils/constants.d.ts +1 -0
- package/dist/example/utils/navbarData.d.ts +2 -0
- package/dist/example/utils/providerData.d.ts +9 -0
- package/dist/example/utils/providersConfiguration.d.ts +1 -0
- package/dist/example/utils/typeGuards.d.ts +1 -0
- package/dist/example/utils/types.d.ts +26 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +360 -246
- package/dist/index.js.map +7 -6
- package/dist/src/index.d.ts +1 -0
- package/dist/src/neonAuthSessionStore.d.ts +563 -0
- package/package.json +86 -74
- package/.claude/settings.local.json +0 -5
- package/.env.example +0 -212
- package/.prettierignore +0 -4
- package/.prettierrc.json +0 -9
- package/CLAUDE.md +0 -91
- package/drizzle.config.ts +0 -14
- package/eslint.config.mjs +0 -251
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const server: "Please install Elysia before using Eden";
|
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
import { NeonHttpDatabase } from 'drizzle-orm/neon-http';
|
|
2
|
+
import { AuthIdentity, NewAuthIdentity, NewAuthIdentityMergeRequest, NewUser, SchemaType } from '../db/schema';
|
|
3
|
+
import { LinkUserIdentityProps, UserFunctionProps } from '../utils/types';
|
|
4
|
+
type GetDBUserProps = {
|
|
5
|
+
userSub: string;
|
|
6
|
+
db: NeonHttpDatabase<SchemaType>;
|
|
7
|
+
};
|
|
8
|
+
type CanonicalUserFields = Pick<NewUser, 'email' | 'first_name' | 'last_name'>;
|
|
9
|
+
export declare const buildCanonicalUserFieldsFromIdentity: ({ authProvider, userIdentity }: {
|
|
10
|
+
authProvider: string;
|
|
11
|
+
userIdentity: Record<string, unknown>;
|
|
12
|
+
}) => CanonicalUserFields;
|
|
13
|
+
export declare const getDBUser: ({ userSub, db }: GetDBUserProps) => Promise<{
|
|
14
|
+
sub: string;
|
|
15
|
+
first_name: string | null;
|
|
16
|
+
last_name: string | null;
|
|
17
|
+
email: string | null;
|
|
18
|
+
created_at: Date;
|
|
19
|
+
primary_auth_identity_id: string | null;
|
|
20
|
+
} | undefined>;
|
|
21
|
+
export declare const createDBUser: ({ sub, db, email, first_name, last_name, primary_auth_identity_id }: NewUser & {
|
|
22
|
+
db: NeonHttpDatabase<SchemaType>;
|
|
23
|
+
}) => Promise<{
|
|
24
|
+
email: string | null;
|
|
25
|
+
sub: string;
|
|
26
|
+
created_at: Date;
|
|
27
|
+
first_name: string | null;
|
|
28
|
+
last_name: string | null;
|
|
29
|
+
primary_auth_identity_id: string | null;
|
|
30
|
+
} | undefined>;
|
|
31
|
+
export declare const updateDBUser: ({ userSub, db, fields }: {
|
|
32
|
+
userSub: string;
|
|
33
|
+
db: NeonHttpDatabase<SchemaType>;
|
|
34
|
+
fields: Partial<NewUser>;
|
|
35
|
+
}) => Promise<{
|
|
36
|
+
sub: string;
|
|
37
|
+
first_name: string | null;
|
|
38
|
+
last_name: string | null;
|
|
39
|
+
email: string | null;
|
|
40
|
+
created_at: Date;
|
|
41
|
+
primary_auth_identity_id: string | null;
|
|
42
|
+
} | undefined>;
|
|
43
|
+
export declare const updateDBUserPrimaryAuthIdentity: ({ userSub, db, primaryAuthIdentityId }: {
|
|
44
|
+
userSub: string;
|
|
45
|
+
db: NeonHttpDatabase<SchemaType>;
|
|
46
|
+
primaryAuthIdentityId: string;
|
|
47
|
+
}) => Promise<{
|
|
48
|
+
sub: string;
|
|
49
|
+
first_name: string | null;
|
|
50
|
+
last_name: string | null;
|
|
51
|
+
email: string | null;
|
|
52
|
+
created_at: Date;
|
|
53
|
+
primary_auth_identity_id: string | null;
|
|
54
|
+
} | undefined>;
|
|
55
|
+
export declare const createDBAuthIdentity: ({ auth_provider, db, id, metadata, provider_subject, user_sub }: NewAuthIdentity & {
|
|
56
|
+
db: NeonHttpDatabase<SchemaType>;
|
|
57
|
+
}) => Promise<{
|
|
58
|
+
id: string;
|
|
59
|
+
auth_provider: string;
|
|
60
|
+
created_at: Date;
|
|
61
|
+
updated_at: Date;
|
|
62
|
+
provider_subject: string;
|
|
63
|
+
metadata: Record<string, unknown> | null;
|
|
64
|
+
user_sub: string;
|
|
65
|
+
} | undefined>;
|
|
66
|
+
export declare const getDBAuthIdentity: ({ authProvider, db, providerSubject }: {
|
|
67
|
+
authProvider: string;
|
|
68
|
+
db: NeonHttpDatabase<SchemaType>;
|
|
69
|
+
providerSubject: string;
|
|
70
|
+
}) => Promise<{
|
|
71
|
+
id: string;
|
|
72
|
+
user_sub: string;
|
|
73
|
+
auth_provider: string;
|
|
74
|
+
provider_subject: string;
|
|
75
|
+
metadata: Record<string, unknown> | null;
|
|
76
|
+
created_at: Date;
|
|
77
|
+
updated_at: Date;
|
|
78
|
+
} | undefined>;
|
|
79
|
+
export declare const getDBAuthIdentityById: ({ db, id }: {
|
|
80
|
+
db: NeonHttpDatabase<SchemaType>;
|
|
81
|
+
id: string;
|
|
82
|
+
}) => Promise<{
|
|
83
|
+
id: string;
|
|
84
|
+
user_sub: string;
|
|
85
|
+
auth_provider: string;
|
|
86
|
+
provider_subject: string;
|
|
87
|
+
metadata: Record<string, unknown> | null;
|
|
88
|
+
created_at: Date;
|
|
89
|
+
updated_at: Date;
|
|
90
|
+
} | undefined>;
|
|
91
|
+
export declare const listDBAuthIdentitiesByUser: ({ db, userSub }: {
|
|
92
|
+
db: NeonHttpDatabase<SchemaType>;
|
|
93
|
+
userSub: string;
|
|
94
|
+
}) => Promise<{
|
|
95
|
+
id: string;
|
|
96
|
+
user_sub: string;
|
|
97
|
+
auth_provider: string;
|
|
98
|
+
provider_subject: string;
|
|
99
|
+
metadata: Record<string, unknown> | null;
|
|
100
|
+
created_at: Date;
|
|
101
|
+
updated_at: Date;
|
|
102
|
+
}[]>;
|
|
103
|
+
export declare const removeDBAuthIdentity: ({ db, id }: {
|
|
104
|
+
db: NeonHttpDatabase<SchemaType>;
|
|
105
|
+
id: string;
|
|
106
|
+
}) => Promise<void>;
|
|
107
|
+
export declare const createDBAuthIdentityMergeRequest: ({ db, ...values }: NewAuthIdentityMergeRequest & {
|
|
108
|
+
db: NeonHttpDatabase<SchemaType>;
|
|
109
|
+
}) => Promise<{
|
|
110
|
+
id: string;
|
|
111
|
+
status: string;
|
|
112
|
+
created_at: Date;
|
|
113
|
+
updated_at: Date;
|
|
114
|
+
metadata: Record<string, unknown> | null;
|
|
115
|
+
target_user_sub: string;
|
|
116
|
+
source_user_sub: string;
|
|
117
|
+
conflicting_auth_provider: string;
|
|
118
|
+
conflicting_provider_subject: string;
|
|
119
|
+
} | undefined>;
|
|
120
|
+
export declare const getDBAuthIdentityMergeRequest: ({ db, id }: {
|
|
121
|
+
db: NeonHttpDatabase<SchemaType>;
|
|
122
|
+
id: string;
|
|
123
|
+
}) => Promise<{
|
|
124
|
+
id: string;
|
|
125
|
+
target_user_sub: string;
|
|
126
|
+
source_user_sub: string;
|
|
127
|
+
conflicting_auth_provider: string;
|
|
128
|
+
conflicting_provider_subject: string;
|
|
129
|
+
status: string;
|
|
130
|
+
metadata: Record<string, unknown> | null;
|
|
131
|
+
created_at: Date;
|
|
132
|
+
updated_at: Date;
|
|
133
|
+
} | undefined>;
|
|
134
|
+
export declare const listDBAuthIdentityMergeRequestsByTarget: ({ db, targetUserSub }: {
|
|
135
|
+
db: NeonHttpDatabase<SchemaType>;
|
|
136
|
+
targetUserSub: string;
|
|
137
|
+
}) => Promise<{
|
|
138
|
+
id: string;
|
|
139
|
+
target_user_sub: string;
|
|
140
|
+
source_user_sub: string;
|
|
141
|
+
conflicting_auth_provider: string;
|
|
142
|
+
conflicting_provider_subject: string;
|
|
143
|
+
status: string;
|
|
144
|
+
metadata: Record<string, unknown> | null;
|
|
145
|
+
created_at: Date;
|
|
146
|
+
updated_at: Date;
|
|
147
|
+
}[]>;
|
|
148
|
+
export declare const upsertDBAuthIdentityMergeRequest: ({ authProvider, db, metadata, providerSubject, sourceUserSub, targetUserSub }: {
|
|
149
|
+
authProvider: string;
|
|
150
|
+
db: NeonHttpDatabase<SchemaType>;
|
|
151
|
+
metadata?: Record<string, unknown>;
|
|
152
|
+
providerSubject: string;
|
|
153
|
+
sourceUserSub: string;
|
|
154
|
+
targetUserSub: string;
|
|
155
|
+
}) => Promise<{
|
|
156
|
+
id: string;
|
|
157
|
+
status: string;
|
|
158
|
+
created_at: Date;
|
|
159
|
+
updated_at: Date;
|
|
160
|
+
metadata: Record<string, unknown> | null;
|
|
161
|
+
target_user_sub: string;
|
|
162
|
+
source_user_sub: string;
|
|
163
|
+
conflicting_auth_provider: string;
|
|
164
|
+
conflicting_provider_subject: string;
|
|
165
|
+
} | undefined>;
|
|
166
|
+
export declare const updateDBAuthIdentityMergeRequestStatus: ({ db, id, status, metadata }: {
|
|
167
|
+
db: NeonHttpDatabase<SchemaType>;
|
|
168
|
+
id: string;
|
|
169
|
+
status: string;
|
|
170
|
+
metadata?: Record<string, unknown>;
|
|
171
|
+
}) => Promise<{
|
|
172
|
+
id: string;
|
|
173
|
+
target_user_sub: string;
|
|
174
|
+
source_user_sub: string;
|
|
175
|
+
conflicting_auth_provider: string;
|
|
176
|
+
conflicting_provider_subject: string;
|
|
177
|
+
status: string;
|
|
178
|
+
metadata: Record<string, unknown> | null;
|
|
179
|
+
created_at: Date;
|
|
180
|
+
updated_at: Date;
|
|
181
|
+
} | undefined>;
|
|
182
|
+
export declare const deleteDBAuthIdentityMergeRequest: ({ db, id }: {
|
|
183
|
+
db: NeonHttpDatabase<SchemaType>;
|
|
184
|
+
id: string;
|
|
185
|
+
}) => Promise<void>;
|
|
186
|
+
export declare const linkUserIdentity: ({ authProvider, db, userSub, userIdentity }: LinkUserIdentityProps<SchemaType>) => Promise<{
|
|
187
|
+
identity: AuthIdentity;
|
|
188
|
+
status: "already_linked" | "created";
|
|
189
|
+
}>;
|
|
190
|
+
export declare const syncDBUserFromAuthIdentity: ({ db, identity, userSub }: {
|
|
191
|
+
db: NeonHttpDatabase<SchemaType>;
|
|
192
|
+
identity: AuthIdentity;
|
|
193
|
+
userSub: string;
|
|
194
|
+
}) => Promise<{
|
|
195
|
+
sub: string;
|
|
196
|
+
first_name: string | null;
|
|
197
|
+
last_name: string | null;
|
|
198
|
+
email: string | null;
|
|
199
|
+
created_at: Date;
|
|
200
|
+
primary_auth_identity_id: string | null;
|
|
201
|
+
} | undefined>;
|
|
202
|
+
export declare const setPrimaryAuthIdentity: ({ db, identityId, userSub }: {
|
|
203
|
+
db: NeonHttpDatabase<SchemaType>;
|
|
204
|
+
identityId: string;
|
|
205
|
+
userSub: string;
|
|
206
|
+
}) => Promise<{
|
|
207
|
+
id: string;
|
|
208
|
+
user_sub: string;
|
|
209
|
+
auth_provider: string;
|
|
210
|
+
provider_subject: string;
|
|
211
|
+
metadata: Record<string, unknown> | null;
|
|
212
|
+
created_at: Date;
|
|
213
|
+
updated_at: Date;
|
|
214
|
+
}>;
|
|
215
|
+
export declare const mergeUserAccounts: ({ db, mergeRequestId, targetUserSub }: {
|
|
216
|
+
db: NeonHttpDatabase<SchemaType>;
|
|
217
|
+
mergeRequestId: string;
|
|
218
|
+
targetUserSub: string;
|
|
219
|
+
}) => Promise<{
|
|
220
|
+
id: string;
|
|
221
|
+
target_user_sub: string;
|
|
222
|
+
source_user_sub: string;
|
|
223
|
+
conflicting_auth_provider: string;
|
|
224
|
+
conflicting_provider_subject: string;
|
|
225
|
+
status: string;
|
|
226
|
+
metadata: Record<string, unknown> | null;
|
|
227
|
+
created_at: Date;
|
|
228
|
+
updated_at: Date;
|
|
229
|
+
}>;
|
|
230
|
+
export declare const createUser: ({ userIdentity, authProvider, db }: UserFunctionProps<SchemaType>) => Promise<{
|
|
231
|
+
sub: string;
|
|
232
|
+
first_name: string | null;
|
|
233
|
+
last_name: string | null;
|
|
234
|
+
email: string | null;
|
|
235
|
+
created_at: Date;
|
|
236
|
+
primary_auth_identity_id: string | null;
|
|
237
|
+
} | undefined>;
|
|
238
|
+
export declare const getUserByIdentity: ({ userIdentity, authProvider, db }: UserFunctionProps<SchemaType>) => Promise<{
|
|
239
|
+
sub: string;
|
|
240
|
+
first_name: string | null;
|
|
241
|
+
last_name: string | null;
|
|
242
|
+
email: string | null;
|
|
243
|
+
created_at: Date;
|
|
244
|
+
primary_auth_identity_id: string | null;
|
|
245
|
+
} | undefined>;
|
|
246
|
+
export declare const getUser: ({ userIdentity, authProvider, db }: UserFunctionProps<SchemaType>) => Promise<{
|
|
247
|
+
sub: string;
|
|
248
|
+
first_name: string | null;
|
|
249
|
+
last_name: string | null;
|
|
250
|
+
email: string | null;
|
|
251
|
+
created_at: Date;
|
|
252
|
+
primary_auth_identity_id: string | null;
|
|
253
|
+
} | undefined>;
|
|
254
|
+
export {};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export type AuthIdentity = {
|
|
2
|
+
id: string;
|
|
3
|
+
user_sub: string;
|
|
4
|
+
auth_provider: string;
|
|
5
|
+
provider_subject: string;
|
|
6
|
+
metadata?: Record<string, unknown>;
|
|
7
|
+
created_at: string;
|
|
8
|
+
updated_at: string;
|
|
9
|
+
isPrimary: boolean;
|
|
10
|
+
};
|
|
11
|
+
export type AuthIdentityMergeRequest = {
|
|
12
|
+
id: string;
|
|
13
|
+
target_user_sub: string;
|
|
14
|
+
source_user_sub: string;
|
|
15
|
+
conflicting_auth_provider: string;
|
|
16
|
+
conflicting_provider_subject: string;
|
|
17
|
+
status: string;
|
|
18
|
+
metadata?: Record<string, unknown>;
|
|
19
|
+
created_at: string;
|
|
20
|
+
updated_at: string;
|
|
21
|
+
};
|
|
22
|
+
export type AuthIdentityPayload = {
|
|
23
|
+
userSub: string;
|
|
24
|
+
primaryIdentityId?: string | null;
|
|
25
|
+
identities: Record<string, AuthIdentity[]>;
|
|
26
|
+
mergeRequests: AuthIdentityMergeRequest[];
|
|
27
|
+
};
|
|
28
|
+
export declare const useAuthIdentityPayload: () => {
|
|
29
|
+
dismissMergeRequest: import("@tanstack/react-query").UseMutateAsyncFunction<AuthIdentityPayload, Error, string, unknown>;
|
|
30
|
+
error: string;
|
|
31
|
+
loading: boolean;
|
|
32
|
+
mergeRequest: import("@tanstack/react-query").UseMutateAsyncFunction<AuthIdentityPayload, Error, string, unknown>;
|
|
33
|
+
payload: AuthIdentityPayload | null;
|
|
34
|
+
refresh: () => Promise<void>;
|
|
35
|
+
removeIdentity: import("@tanstack/react-query").UseMutateAsyncFunction<AuthIdentityPayload, Error, string, unknown>;
|
|
36
|
+
setPrimaryIdentity: import("@tanstack/react-query").UseMutateAsyncFunction<AuthIdentityPayload, Error, string, unknown>;
|
|
37
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const useAuthStatus: () => {
|
|
2
|
+
handleSignOut: () => Promise<void>;
|
|
3
|
+
setUser: import("react").Dispatch<import("react").SetStateAction<{
|
|
4
|
+
email: string | null;
|
|
5
|
+
sub: string;
|
|
6
|
+
created_at: Date;
|
|
7
|
+
first_name: string | null;
|
|
8
|
+
last_name: string | null;
|
|
9
|
+
primary_auth_identity_id: string | null;
|
|
10
|
+
} | undefined>>;
|
|
11
|
+
user: {
|
|
12
|
+
email: string | null;
|
|
13
|
+
sub: string;
|
|
14
|
+
created_at: Date;
|
|
15
|
+
first_name: string | null;
|
|
16
|
+
last_name: string | null;
|
|
17
|
+
primary_auth_identity_id: string | null;
|
|
18
|
+
} | undefined;
|
|
19
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
type Breakpoints = {
|
|
2
|
+
xs: number;
|
|
3
|
+
sm: number;
|
|
4
|
+
md: number;
|
|
5
|
+
lg: number;
|
|
6
|
+
xl: number;
|
|
7
|
+
'2xl': number;
|
|
8
|
+
};
|
|
9
|
+
export type Breakpoint = keyof Breakpoints;
|
|
10
|
+
export declare const useMediaQuery: (customBreakpoints?: Breakpoints) => keyof Breakpoints;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { OAuth2Client, OAuth2TokenResponse, ProviderOption } from 'citra';
|
|
2
|
+
import type { LinkedProviderBinding, LinkedProviderGrant } from '@absolutejs/linked-providers';
|
|
3
|
+
import { NeonHttpDatabase } from 'drizzle-orm/neon-http';
|
|
4
|
+
import { ResolvedOAuthAuthorization } from '../../src';
|
|
5
|
+
import { SchemaType } from '../db/schema';
|
|
6
|
+
export declare const GMAIL_READONLY_SCOPE = "https://www.googleapis.com/auth/gmail.readonly";
|
|
7
|
+
export declare const GOOGLE_CONTACTS_READONLY_SCOPE = "https://www.googleapis.com/auth/contacts.readonly";
|
|
8
|
+
export declare const FACEBOOK_PAGES_SHOW_LIST_SCOPE = "pages_show_list";
|
|
9
|
+
export declare const FACEBOOK_PAGES_READ_ENGAGEMENT_SCOPE = "pages_read_engagement";
|
|
10
|
+
export declare const INSTAGRAM_BASIC_SCOPE = "instagram_basic";
|
|
11
|
+
export declare const persistLinkedProviderCallbackAuthorization: ({ authClient, authProvider, configuredScopes, db, ownerRefOverride, providerInstance, resolvedAuthorization, tokenResponse }: {
|
|
12
|
+
authProvider: ProviderOption;
|
|
13
|
+
authClient?: string;
|
|
14
|
+
configuredScopes?: string[];
|
|
15
|
+
db: NeonHttpDatabase<SchemaType>;
|
|
16
|
+
ownerRefOverride?: string;
|
|
17
|
+
providerInstance: OAuth2Client<ProviderOption>;
|
|
18
|
+
resolvedAuthorization?: ResolvedOAuthAuthorization;
|
|
19
|
+
tokenResponse: OAuth2TokenResponse;
|
|
20
|
+
}) => Promise<{
|
|
21
|
+
resolvedAuthorization: ResolvedOAuthAuthorization;
|
|
22
|
+
binding?: undefined;
|
|
23
|
+
bindings?: undefined;
|
|
24
|
+
grant?: undefined;
|
|
25
|
+
} | {
|
|
26
|
+
binding: LinkedProviderBinding | undefined;
|
|
27
|
+
bindings: LinkedProviderBinding[];
|
|
28
|
+
grant: LinkedProviderGrant;
|
|
29
|
+
resolvedAuthorization: ResolvedOAuthAuthorization;
|
|
30
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const createExampleLinkedProviderCredentialResolver: (databaseUrl: string) => Promise<import("@absolutejs/linked-providers").LinkedProviderCredentialResolver>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { LinkedProviderBindingStore, LinkedProviderGrantStore } from '@absolutejs/linked-providers';
|
|
2
|
+
import { NeonHttpDatabase } from 'drizzle-orm/neon-http';
|
|
3
|
+
import { SchemaType } from '../db/schema';
|
|
4
|
+
export declare const createDrizzleLinkedProviderGrantStore: (db: NeonHttpDatabase<SchemaType>) => LinkedProviderGrantStore;
|
|
5
|
+
export declare const createDrizzleLinkedProviderBindingStore: (db: NeonHttpDatabase<SchemaType>) => LinkedProviderBindingStore;
|
|
6
|
+
export declare const createDrizzleLinkedProviderStores: (db: NeonHttpDatabase<SchemaType>) => {
|
|
7
|
+
bindingStore: LinkedProviderBindingStore;
|
|
8
|
+
grantStore: LinkedProviderGrantStore;
|
|
9
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Connectors: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Home: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const NotAuthorized: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Protected: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Settings: () => import("react/jsx-runtime").JSX.Element;
|