@absolutejs/auth 0.22.5 → 0.22.7
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 +729 -612
- package/dist/index.js.map +8 -7
- 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
package/eslint.config.mjs
DELETED
|
@@ -1,251 +0,0 @@
|
|
|
1
|
-
// eslint.config.mjs
|
|
2
|
-
import { dirname } from 'path';
|
|
3
|
-
import { fileURLToPath } from 'url';
|
|
4
|
-
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
5
|
-
|
|
6
|
-
import pluginJs from '@eslint/js';
|
|
7
|
-
import stylisticTs from '@stylistic/eslint-plugin-ts';
|
|
8
|
-
import tsParser from '@typescript-eslint/parser';
|
|
9
|
-
import absolutePlugin from 'eslint-plugin-absolute';
|
|
10
|
-
import importPlugin from 'eslint-plugin-import';
|
|
11
|
-
import jsxA11yPlugin from 'eslint-plugin-jsx-a11y';
|
|
12
|
-
import promisePlugin from 'eslint-plugin-promise';
|
|
13
|
-
import reactPlugin from 'eslint-plugin-react';
|
|
14
|
-
import reactCompilerPlugin from 'eslint-plugin-react-compiler';
|
|
15
|
-
import reactHooksPlugin from 'eslint-plugin-react-hooks';
|
|
16
|
-
import securityPlugin from 'eslint-plugin-security';
|
|
17
|
-
import globals from 'globals';
|
|
18
|
-
import tseslint from 'typescript-eslint';
|
|
19
|
-
|
|
20
|
-
export default [
|
|
21
|
-
{
|
|
22
|
-
ignores: ['example/build/**']
|
|
23
|
-
},
|
|
24
|
-
pluginJs.configs.recommended,
|
|
25
|
-
|
|
26
|
-
...tseslint.configs.recommended,
|
|
27
|
-
|
|
28
|
-
{
|
|
29
|
-
files: ['**/*.{ts,tsx}'],
|
|
30
|
-
languageOptions: {
|
|
31
|
-
globals: globals.browser,
|
|
32
|
-
parser: tsParser,
|
|
33
|
-
parserOptions: {
|
|
34
|
-
createDefaultProgram: true,
|
|
35
|
-
project: './tsconfig.json',
|
|
36
|
-
tsconfigRootDir: __dirname
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
|
|
41
|
-
{
|
|
42
|
-
files: ['**/*.{ts,tsx}'],
|
|
43
|
-
plugins: { '@stylistic/ts': stylisticTs },
|
|
44
|
-
rules: {
|
|
45
|
-
'@stylistic/ts/padding-line-between-statements': [
|
|
46
|
-
'error',
|
|
47
|
-
{ blankLine: 'always', next: 'return', prev: '*' }
|
|
48
|
-
],
|
|
49
|
-
"@typescript-eslint/no-unnecessary-type-assertion": "error"
|
|
50
|
-
}
|
|
51
|
-
},
|
|
52
|
-
|
|
53
|
-
{
|
|
54
|
-
files: ['**/*.{js,mjs,cjs,ts,tsx,jsx}'],
|
|
55
|
-
ignores: ['example/build/**'],
|
|
56
|
-
plugins: {
|
|
57
|
-
absolute: absolutePlugin,
|
|
58
|
-
import: importPlugin,
|
|
59
|
-
promise: promisePlugin,
|
|
60
|
-
security: securityPlugin
|
|
61
|
-
},
|
|
62
|
-
rules: {
|
|
63
|
-
'absolute/explicit-object-types': 'error',
|
|
64
|
-
'absolute/localize-react-props': 'error',
|
|
65
|
-
'absolute/max-depth-extended': ['error', 1],
|
|
66
|
-
'absolute/max-jsxnesting': ['error', 5],
|
|
67
|
-
'absolute/min-var-length': [
|
|
68
|
-
'error',
|
|
69
|
-
{ allowedVars: ['_', 'id', 'db', 'OK'], minLength: 3 }
|
|
70
|
-
],
|
|
71
|
-
'absolute/no-button-navigation': 'error',
|
|
72
|
-
'absolute/no-explicit-return-type': 'error',
|
|
73
|
-
'absolute/no-inline-prop-types': 'error',
|
|
74
|
-
'absolute/no-multi-style-objects': 'error',
|
|
75
|
-
'absolute/no-nested-jsx-return': 'error',
|
|
76
|
-
'absolute/no-or-none-component': 'error',
|
|
77
|
-
'absolute/no-transition-cssproperties': 'error',
|
|
78
|
-
'absolute/no-unnecessary-div': 'error',
|
|
79
|
-
'absolute/no-unnecessary-key': 'error',
|
|
80
|
-
'absolute/no-useless-function': 'error',
|
|
81
|
-
'absolute/seperate-style-files': 'error',
|
|
82
|
-
'absolute/sort-exports': [
|
|
83
|
-
'error',
|
|
84
|
-
{
|
|
85
|
-
caseSensitive: true,
|
|
86
|
-
natural: true,
|
|
87
|
-
order: 'asc',
|
|
88
|
-
variablesBeforeFunctions: true
|
|
89
|
-
}
|
|
90
|
-
],
|
|
91
|
-
'absolute/sort-keys-fixable': [
|
|
92
|
-
'error',
|
|
93
|
-
{
|
|
94
|
-
caseSensitive: true,
|
|
95
|
-
natural: true,
|
|
96
|
-
order: 'asc',
|
|
97
|
-
variablesBeforeFunctions: true
|
|
98
|
-
}
|
|
99
|
-
],
|
|
100
|
-
'arrow-body-style': ['error', 'as-needed'],
|
|
101
|
-
'consistent-return': 'error',
|
|
102
|
-
eqeqeq: 'error',
|
|
103
|
-
'func-style': [
|
|
104
|
-
'error',
|
|
105
|
-
'expression',
|
|
106
|
-
{ allowArrowFunctions: true }
|
|
107
|
-
],
|
|
108
|
-
'import/no-cycle': 'error',
|
|
109
|
-
'import/no-default-export': 'error',
|
|
110
|
-
'import/no-relative-packages': 'error',
|
|
111
|
-
'import/no-unused-modules': ['error', { missingExports: true }],
|
|
112
|
-
'import/order': ['error', { alphabetize: { order: 'asc' } }],
|
|
113
|
-
'no-await-in-loop': 'error',
|
|
114
|
-
'no-console': ['error', { allow: ['warn', 'error'] }],
|
|
115
|
-
'no-debugger': 'error',
|
|
116
|
-
'no-duplicate-case': 'error',
|
|
117
|
-
'no-duplicate-imports': 'error',
|
|
118
|
-
'no-else-return': 'error',
|
|
119
|
-
'no-empty-function': 'error',
|
|
120
|
-
'no-empty-pattern': 'error',
|
|
121
|
-
'no-empty-static-block': 'error',
|
|
122
|
-
'no-fallthrough': 'error',
|
|
123
|
-
'no-floating-decimal': 'error',
|
|
124
|
-
'no-global-assign': 'error',
|
|
125
|
-
'no-implicit-coercion': 'error',
|
|
126
|
-
'no-implicit-globals': 'error',
|
|
127
|
-
'no-loop-func': 'error',
|
|
128
|
-
'no-magic-numbers': [
|
|
129
|
-
'warn',
|
|
130
|
-
{ detectObjects: false, enforceConst: true, ignore: [0, 1, -1, 2] }
|
|
131
|
-
],
|
|
132
|
-
'no-misleading-character-class': 'error',
|
|
133
|
-
'no-nested-ternary': 'error',
|
|
134
|
-
'no-new-native-nonconstructor': 'error',
|
|
135
|
-
'no-new-wrappers': 'error',
|
|
136
|
-
'no-param-reassign': 'error',
|
|
137
|
-
'no-restricted-imports': [
|
|
138
|
-
'error',
|
|
139
|
-
{
|
|
140
|
-
paths: [
|
|
141
|
-
{
|
|
142
|
-
importNames: ['default'],
|
|
143
|
-
message:
|
|
144
|
-
'Import only named React exports for tree-shaking.',
|
|
145
|
-
name: 'react'
|
|
146
|
-
},
|
|
147
|
-
{
|
|
148
|
-
importNames: ['default'],
|
|
149
|
-
message: 'Import only the required Bun exports.',
|
|
150
|
-
name: 'bun'
|
|
151
|
-
}
|
|
152
|
-
]
|
|
153
|
-
}
|
|
154
|
-
],
|
|
155
|
-
'no-return-await': 'error',
|
|
156
|
-
'no-shadow': 'error',
|
|
157
|
-
'no-undef': 'error',
|
|
158
|
-
'no-unneeded-ternary': 'error',
|
|
159
|
-
'no-unreachable': 'error',
|
|
160
|
-
'no-useless-assignment': 'error',
|
|
161
|
-
'no-useless-concat': 'error',
|
|
162
|
-
'no-useless-return': 'error',
|
|
163
|
-
'no-var': 'error',
|
|
164
|
-
'prefer-arrow-callback': 'error',
|
|
165
|
-
'prefer-const': 'error',
|
|
166
|
-
'prefer-destructuring': [
|
|
167
|
-
'error',
|
|
168
|
-
{ array: true, object: true },
|
|
169
|
-
{ enforceForRenamedProperties: false }
|
|
170
|
-
],
|
|
171
|
-
'prefer-template': 'error',
|
|
172
|
-
'promise/always-return': 'warn',
|
|
173
|
-
'promise/avoid-new': 'warn',
|
|
174
|
-
'promise/catch-or-return': 'error',
|
|
175
|
-
'promise/no-callback-in-promise': 'warn',
|
|
176
|
-
'promise/no-nesting': 'warn',
|
|
177
|
-
'promise/no-promise-in-callback': 'warn',
|
|
178
|
-
'promise/no-return-wrap': 'error',
|
|
179
|
-
'promise/param-names': 'error'
|
|
180
|
-
}
|
|
181
|
-
},
|
|
182
|
-
{
|
|
183
|
-
files: ['example/**/*.{js,jsx,ts,tsx}'],
|
|
184
|
-
plugins: {
|
|
185
|
-
'jsx-a11y': jsxA11yPlugin,
|
|
186
|
-
react: reactPlugin,
|
|
187
|
-
'react-compiler': reactCompilerPlugin,
|
|
188
|
-
'react-hooks': reactHooksPlugin
|
|
189
|
-
},
|
|
190
|
-
rules: {
|
|
191
|
-
'jsx-a11y/prefer-tag-over-role': 'error',
|
|
192
|
-
'react-compiler/react-compiler': 'error',
|
|
193
|
-
'react-hooks/exhaustive-deps': 'warn',
|
|
194
|
-
'react-hooks/rules-of-hooks': 'error',
|
|
195
|
-
'react/checked-requires-onchange-or-readonly': 'error',
|
|
196
|
-
'react/destructuring-assignment': ['error', 'always'],
|
|
197
|
-
'react/jsx-filename-extension': ['error', { extensions: ['.tsx'] }],
|
|
198
|
-
'react/jsx-no-leaked-render': 'error',
|
|
199
|
-
'react/jsx-no-target-blank': 'error',
|
|
200
|
-
'react/jsx-no-useless-fragment': 'error',
|
|
201
|
-
'react/jsx-pascal-case': ['error', { allowAllCaps: true }],
|
|
202
|
-
'react/no-multi-comp': 'error',
|
|
203
|
-
'react/no-unknown-property': 'off',
|
|
204
|
-
'react/react-in-jsx-scope': 'off',
|
|
205
|
-
'react/self-closing-comp': 'error'
|
|
206
|
-
},
|
|
207
|
-
settings: {
|
|
208
|
-
react: { version: 'detect' }
|
|
209
|
-
}
|
|
210
|
-
},
|
|
211
|
-
{
|
|
212
|
-
files: [
|
|
213
|
-
'example/server.ts',
|
|
214
|
-
'example/indexes/*.tsx',
|
|
215
|
-
'example/db/migrate.ts'
|
|
216
|
-
],
|
|
217
|
-
rules: {
|
|
218
|
-
'import/no-unused-modules': 'off'
|
|
219
|
-
}
|
|
220
|
-
},
|
|
221
|
-
{
|
|
222
|
-
files: ['example/db/migrate.ts','example/utils/absoluteAuthConfig.ts'],
|
|
223
|
-
rules: {
|
|
224
|
-
'no-console': 'off'
|
|
225
|
-
}
|
|
226
|
-
},
|
|
227
|
-
{
|
|
228
|
-
files: ['eslint.config.mjs'],
|
|
229
|
-
rules: {
|
|
230
|
-
'no-magic-numbers': 'off'
|
|
231
|
-
}
|
|
232
|
-
},
|
|
233
|
-
{
|
|
234
|
-
files: ['eslint.config.mjs'],
|
|
235
|
-
rules: {
|
|
236
|
-
'import/no-default-export': 'off'
|
|
237
|
-
}
|
|
238
|
-
},
|
|
239
|
-
{
|
|
240
|
-
files: ['example/server.ts'],
|
|
241
|
-
rules: {
|
|
242
|
-
'@typescript-eslint/no-unused-vars': 'off'
|
|
243
|
-
}
|
|
244
|
-
},
|
|
245
|
-
{
|
|
246
|
-
files: ['example/db/schema.ts'],
|
|
247
|
-
rules: {
|
|
248
|
-
'absolute/explicit-object-types': 'off'
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
];
|