@driveflux/auth 4.0.86 → 4.0.88

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.
Files changed (103) hide show
  1. package/dist/AuthProvider.d.ts +0 -1
  2. package/dist/AuthProvider.js +76 -59
  3. package/dist/ability.d.ts +0 -1
  4. package/dist/authorization/constants.d.ts +1 -2
  5. package/dist/authorization/constants.js +45 -24
  6. package/dist/authorization/define.d.ts +0 -1
  7. package/dist/authorization/define.js +57 -28
  8. package/dist/authorization/fields/index.d.ts +0 -1
  9. package/dist/authorization/fields/index.js +4 -7
  10. package/dist/authorization/helpers.d.ts +0 -1
  11. package/dist/authorization/helpers.js +10 -8
  12. package/dist/authorization/index.d.ts +0 -1
  13. package/dist/authorization/index.js +6 -6
  14. package/dist/authorization/permissions-list.d.ts +0 -1
  15. package/dist/authorization/permissions-list.js +5 -7
  16. package/dist/authorization/quick.d.ts +0 -1
  17. package/dist/authorization/quick.js +1 -1
  18. package/dist/authorization/roles/admin/business-development-executive.d.ts +0 -1
  19. package/dist/authorization/roles/admin/business-development-executive.js +20 -7
  20. package/dist/authorization/roles/admin/ceo.d.ts +0 -1
  21. package/dist/authorization/roles/admin/ceo.js +4 -2
  22. package/dist/authorization/roles/admin/common.d.ts +0 -1
  23. package/dist/authorization/roles/admin/common.js +5 -3
  24. package/dist/authorization/roles/admin/concierge.d.ts +0 -1
  25. package/dist/authorization/roles/admin/concierge.js +35 -10
  26. package/dist/authorization/roles/admin/customer-success-executive.d.ts +0 -1
  27. package/dist/authorization/roles/admin/customer-success-executive.js +40 -10
  28. package/dist/authorization/roles/admin/data-analyst.d.ts +0 -1
  29. package/dist/authorization/roles/admin/data-analyst.js +7 -4
  30. package/dist/authorization/roles/admin/designer.d.ts +0 -1
  31. package/dist/authorization/roles/admin/designer.js +7 -4
  32. package/dist/authorization/roles/admin/engineer.d.ts +0 -1
  33. package/dist/authorization/roles/admin/engineer.js +7 -4
  34. package/dist/authorization/roles/admin/finance-executive.d.ts +0 -1
  35. package/dist/authorization/roles/admin/finance-executive.js +11 -4
  36. package/dist/authorization/roles/admin/head-of-business-development.d.ts +0 -1
  37. package/dist/authorization/roles/admin/head-of-business-development.js +14 -4
  38. package/dist/authorization/roles/admin/head-of-data-analytics.d.ts +0 -1
  39. package/dist/authorization/roles/admin/head-of-data-analytics.js +14 -4
  40. package/dist/authorization/roles/admin/head-of-engineering.d.ts +0 -1
  41. package/dist/authorization/roles/admin/head-of-engineering.js +17 -6
  42. package/dist/authorization/roles/admin/head-of-finance.d.ts +0 -1
  43. package/dist/authorization/roles/admin/head-of-finance.js +8 -3
  44. package/dist/authorization/roles/admin/head-of-human-resources.d.ts +0 -1
  45. package/dist/authorization/roles/admin/head-of-human-resources.js +13 -5
  46. package/dist/authorization/roles/admin/head-of-marketing.d.ts +0 -1
  47. package/dist/authorization/roles/admin/head-of-marketing.js +17 -5
  48. package/dist/authorization/roles/admin/head-of-operations.d.ts +0 -1
  49. package/dist/authorization/roles/admin/head-of-operations.js +8 -3
  50. package/dist/authorization/roles/admin/head-of-product.d.ts +0 -1
  51. package/dist/authorization/roles/admin/head-of-product.js +17 -6
  52. package/dist/authorization/roles/admin/head-of-sales.d.ts +0 -1
  53. package/dist/authorization/roles/admin/head-of-sales.js +17 -5
  54. package/dist/authorization/roles/admin/human-resources-executive.d.ts +0 -1
  55. package/dist/authorization/roles/admin/human-resources-executive.js +12 -5
  56. package/dist/authorization/roles/admin/marketing-executive.d.ts +0 -1
  57. package/dist/authorization/roles/admin/marketing-executive.js +7 -4
  58. package/dist/authorization/roles/admin/product-manager.d.ts +0 -1
  59. package/dist/authorization/roles/admin/product-manager.js +7 -4
  60. package/dist/authorization/roles/admin/sales-executive.d.ts +0 -1
  61. package/dist/authorization/roles/admin/sales-executive.js +24 -8
  62. package/dist/authorization/roles/consumer/business-admin.d.ts +0 -1
  63. package/dist/authorization/roles/consumer/business-admin.js +19 -6
  64. package/dist/authorization/roles/consumer/business-user.d.ts +0 -1
  65. package/dist/authorization/roles/consumer/business-user.js +18 -6
  66. package/dist/authorization/roles/consumer/member.d.ts +0 -1
  67. package/dist/authorization/roles/consumer/member.js +16 -6
  68. package/dist/authorization/types.d.ts +0 -1
  69. package/dist/authorization/types.js +1 -1
  70. package/dist/authorization/update-user-permissions.d.ts +0 -1
  71. package/dist/authorization/update-user-permissions.js +22 -15
  72. package/dist/authorization/utils.d.ts +0 -1
  73. package/dist/authorization/utils.js +26 -11
  74. package/dist/constants.d.ts +0 -1
  75. package/dist/constants.js +2 -4
  76. package/dist/context.d.ts +0 -1
  77. package/dist/context.js +8 -9
  78. package/dist/default.d.ts +0 -1
  79. package/dist/default.js +1 -1
  80. package/dist/index.d.ts +0 -1
  81. package/dist/providers.d.ts +0 -1
  82. package/dist/react.d.ts +0 -1
  83. package/dist/server/authenticate-user.d.ts +0 -1
  84. package/dist/server/authenticate-user.js +11 -7
  85. package/dist/server/cors.d.ts +0 -1
  86. package/dist/server/cors.js +23 -12
  87. package/dist/server/credentials-provider.d.ts +0 -1
  88. package/dist/server/credentials-provider.js +2 -2
  89. package/dist/server/index.d.ts +0 -1
  90. package/dist/server/next-auth.js +104 -109
  91. package/dist/server/prisma-adapter.d.ts +0 -1
  92. package/dist/server/prisma-adapter.js +88 -52
  93. package/dist/server/types.d.ts +0 -1
  94. package/dist/server/verfiy-token.d.ts +0 -1
  95. package/dist/server/verfiy-token.js +39 -24
  96. package/dist/translations.d.ts +0 -1
  97. package/dist/translations.js +4 -4
  98. package/dist/types.d.ts +0 -1
  99. package/dist/use-auth.d.ts +0 -1
  100. package/dist/use-auth.js +1 -1
  101. package/dist/use-session.d.ts +0 -1
  102. package/dist/use-session.js +1 -1
  103. package/package.json +29 -29
@@ -1,28 +1,39 @@
1
1
  import { config } from '@driveflux/config/backend';
2
2
  import Cors from 'cors';
3
3
  const corsOptions = {
4
- origin: (origin, callback) => {
5
- const allowedOrigins = [config.appUrl];
6
- if (config.appEnv === 'development' ||
7
- (origin && allowedOrigins.includes(origin))) {
4
+ origin: (origin, callback)=>{
5
+ const allowedOrigins = [
6
+ config.appUrl
7
+ ];
8
+ if (config.appEnv === 'development' || origin && allowedOrigins.includes(origin)) {
8
9
  callback(null, true);
9
- }
10
- else {
10
+ } else {
11
11
  callback(new Error('CORS not allowed'));
12
12
  }
13
13
  },
14
- allowedHeaders: ['content-type', 'x-correlation-id', 'authorization'],
14
+ allowedHeaders: [
15
+ 'content-type',
16
+ 'x-correlation-id',
17
+ 'authorization'
18
+ ],
15
19
  exposedHeaders: '*',
16
- methods: ['GET', 'HEAD', 'PUT', 'PATCH', 'POST', 'DELETE'],
17
- credentials: true,
20
+ methods: [
21
+ 'GET',
22
+ 'HEAD',
23
+ 'PUT',
24
+ 'PATCH',
25
+ 'POST',
26
+ 'DELETE'
27
+ ],
28
+ credentials: true
18
29
  };
19
30
  // Initializing the cors middleware
20
31
  // I don't have time to debug cors now, I've got a million things to do.
21
32
  // TODO Implement this properly please
22
33
  const corsHandler = config.appEnv === 'development' ? Cors(corsOptions) : Cors();
23
- export const cors = (req, res) => {
24
- return new Promise((resolve, reject) => {
25
- corsHandler(req, res, (result) => {
34
+ export const cors = (req, res)=>{
35
+ return new Promise((resolve, reject)=>{
36
+ corsHandler(req, res, (result)=>{
26
37
  if (result instanceof Error) {
27
38
  return reject(result);
28
39
  }
@@ -23,4 +23,3 @@ export type CredentialsProviderType = 'Credentials';
23
23
  type UserCredentialsConfig<C extends Record<string, CredentialInput>> = Partial<Omit<CredentialsConfig<C>, 'options'>> & Pick<CredentialsConfig<C>, 'authorize' | 'credentials'>;
24
24
  export declare function Credentials<C extends Record<string, CredentialInput> = Record<string, CredentialInput>>(options: UserCredentialsConfig<C>): CredentialsConfig<C>;
25
25
  export {};
26
- //# sourceMappingURL=credentials-provider.d.ts.map
@@ -4,7 +4,7 @@ export function Credentials(options) {
4
4
  name: 'Credentials',
5
5
  type: 'flux-credentials',
6
6
  credentials: {},
7
- authorize: () => null,
8
- options,
7
+ authorize: ()=>null,
8
+ options
9
9
  };
10
10
  }
@@ -1,4 +1,3 @@
1
1
  export { getServerSession } from 'next-auth';
2
2
  export * from './authenticate-user.js';
3
3
  export * from './next-auth.js';
4
- //# sourceMappingURL=index.d.ts.map
@@ -8,7 +8,7 @@ import { nanoid } from 'nanoid';
8
8
  import CredentialsProvider from 'next-auth/providers/credentials';
9
9
  import FacebookProvider from 'next-auth/providers/facebook';
10
10
  import GoogleProvider from 'next-auth/providers/google';
11
- import { AUTH_COOKIE_CALLBACK_URL, AUTH_COOKIE_CSRF_TOKEN, AUTH_COOKIE_NONCE, AUTH_COOKIE_PKCE_CODE_VERIFIER, AUTH_COOKIE_SESSION_TOKEN, AUTH_COOKIE_STATE, } from '../constants.js';
11
+ import { AUTH_COOKIE_CALLBACK_URL, AUTH_COOKIE_CSRF_TOKEN, AUTH_COOKIE_NONCE, AUTH_COOKIE_PKCE_CODE_VERIFIER, AUTH_COOKIE_SESSION_TOKEN, AUTH_COOKIE_STATE } from '../constants.js';
12
12
  import { extractDefault } from '../default.js';
13
13
  import { translations } from '../translations.js';
14
14
  import { authenticateUser } from './authenticate-user.js';
@@ -21,80 +21,79 @@ const nextAuthUrl = process.env.NEXTAUTH_URL;
21
21
  if (!nextAuthUrl) {
22
22
  throw new Error('NEXTAUTH_URL is not set');
23
23
  }
24
- export const generateSessionToken = async (user) => {
24
+ export const generateSessionToken = async (user)=>{
25
25
  const secret = new TextEncoder().encode(config.auth.jwtSecret);
26
26
  const alg = 'HS256';
27
27
  const token = await new SignJWT({
28
- roles: user.groups,
29
- })
30
- .setProtectedHeader({ alg })
31
- .setIssuedAt()
32
- .setSubject(user.id)
33
- .setIssuer('flux.website')
34
- .setAudience('flux.website')
35
- .sign(secret);
28
+ roles: user.groups
29
+ }).setProtectedHeader({
30
+ alg
31
+ }).setIssuedAt().setSubject(user.id).setIssuer('flux.website').setAudience('flux.website').sign(secret);
36
32
  return token.toString();
37
33
  };
38
- export const getCredentialsOptions = () => {
34
+ export const getCredentialsOptions = ()=>{
39
35
  return {
40
36
  name: 'Credentials',
41
37
  credentials: {
42
- login: { label: translations.email, type: 'text' },
43
- password: { label: translations.password, type: 'password' },
38
+ login: {
39
+ label: translations.email,
40
+ type: 'text'
41
+ },
42
+ password: {
43
+ label: translations.password,
44
+ type: 'password'
45
+ }
44
46
  },
45
- async authorize(credentials) {
47
+ async authorize (credentials) {
46
48
  if (!credentials) {
47
49
  return null;
48
50
  }
49
51
  const authResult = await authenticateUser(credentials);
50
52
  return authResult.ok ? authResult.val : null;
51
- },
53
+ }
52
54
  };
53
55
  };
54
56
  export const authOptions = {
55
57
  adapter,
56
58
  providers: [
57
- ...(config.auth.google
58
- ? [
59
- extractDefault(GoogleProvider)({
60
- ...config.auth.google,
61
- allowDangerousEmailAccountLinking: true,
62
- }),
63
- ]
64
- : []),
65
- ...(config.auth.facebook
66
- ? [
67
- extractDefault(FacebookProvider)({
68
- ...config.auth.facebook,
69
- allowDangerousEmailAccountLinking: true,
70
- }),
71
- ]
72
- : []),
73
- extractDefault(CredentialsProvider)(getCredentialsOptions()),
59
+ ...config.auth.google ? [
60
+ extractDefault(GoogleProvider)({
61
+ ...config.auth.google,
62
+ allowDangerousEmailAccountLinking: true
63
+ })
64
+ ] : [],
65
+ ...config.auth.facebook ? [
66
+ extractDefault(FacebookProvider)({
67
+ ...config.auth.facebook,
68
+ allowDangerousEmailAccountLinking: true
69
+ })
70
+ ] : [],
71
+ extractDefault(CredentialsProvider)(getCredentialsOptions())
74
72
  ],
75
73
  callbacks: {
76
- async signIn({ account, profile }) {
77
- const processName = (profile) => {
74
+ async signIn ({ account, profile }) {
75
+ const processName = (profile)=>{
78
76
  if (profile?.given_name || profile?.family_name) {
79
77
  return {
80
78
  firstName: profile?.given_name || '',
81
- lastName: profile?.family_name || '',
79
+ lastName: profile?.family_name || ''
82
80
  };
83
81
  }
84
82
  if (!profile?.name) {
85
83
  return {
86
84
  firstName: '',
87
- lastName: '',
85
+ lastName: ''
88
86
  };
89
87
  }
90
- const r = (str) => str.replace(/\s+/g, ' ').trim();
88
+ const r = (str)=>str.replace(/\s+/g, ' ').trim();
91
89
  const names = profile?.name.trim();
92
90
  const nameSegments = names.split(' ');
93
- const firstName = r(nameSegments
94
- .filter((_s, i) => i !== nameSegments?.length - 1)
95
- .join(' '));
91
+ const firstName = r(nameSegments.filter((_s, i)=>i !== nameSegments?.length - 1).join(' '));
96
92
  const lastName = r(nameSegments?.[nameSegments?.length - 1]);
97
- return { firstName, lastName };
93
+ return {
94
+ firstName,
95
+ lastName
96
+ };
98
97
  };
99
98
  if (account?.provider === 'google') {
100
99
  if (!profile?.email) {
@@ -105,7 +104,7 @@ export const authOptions = {
105
104
  // const password = await bcrypt.hash(nanoid(), nanoid())
106
105
  await prisma.user.upsert({
107
106
  where: {
108
- email: profile.email,
107
+ email: profile.email
109
108
  },
110
109
  create: {
111
110
  id: generateId('User'),
@@ -115,13 +114,12 @@ export const authOptions = {
115
114
  password,
116
115
  registrationComplete: false,
117
116
  metadata: {
118
- signupProvider: 'google',
119
- },
117
+ signupProvider: 'google'
118
+ }
120
119
  },
121
- update: {},
120
+ update: {}
122
121
  });
123
- }
124
- else if (account?.provider === 'facebook') {
122
+ } else if (account?.provider === 'facebook') {
125
123
  if (!profile?.email) {
126
124
  throw new Error('Unauthenticated');
127
125
  }
@@ -129,7 +127,7 @@ export const authOptions = {
129
127
  const password = `${nanoid()}-${nanoid()}`;
130
128
  await prisma.user.upsert({
131
129
  where: {
132
- email: profile.email,
130
+ email: profile.email
133
131
  },
134
132
  create: {
135
133
  id: generateId('User'),
@@ -139,46 +137,43 @@ export const authOptions = {
139
137
  password,
140
138
  registrationComplete: false,
141
139
  metadata: {
142
- signupProvider: 'facebook',
143
- },
140
+ signupProvider: 'facebook'
141
+ }
144
142
  },
145
- update: {},
143
+ update: {}
146
144
  });
147
145
  }
148
146
  return true;
149
147
  },
150
- async session({ session, user, trigger }) {
151
- const { password, permissions, stripeCustomerId, ...newUser } = { ...user };
148
+ async session ({ session, user, trigger }) {
149
+ const { password, permissions, stripeCustomerId, ...newUser } = {
150
+ ...user
151
+ };
152
152
  const finalSession = {
153
153
  user: newUser,
154
154
  expires: new Date(session.expires).toISOString(),
155
155
  id: session.id,
156
- sessionToken: session.sessionToken,
156
+ sessionToken: session.sessionToken
157
157
  };
158
- const decodedToken = session.sessionToken
159
- ? decodeJwt(session.sessionToken)
160
- : null;
158
+ const decodedToken = session.sessionToken ? decodeJwt(session.sessionToken) : null;
161
159
  const tokenRoles = decodedToken?.roles;
162
160
  if (session.sessionToken) {
163
- if (trigger === 'update' ||
164
- !tokenRoles ||
165
- !areArraysSimilar(tokenRoles, user.groups)) {
161
+ if (trigger === 'update' || !tokenRoles || !areArraysSimilar(tokenRoles, user.groups)) {
166
162
  const newSessionToken = await generateSessionToken(user);
167
163
  // We can't call the update session from the patch because it searches by sessionToken and not by ID
168
164
  try {
169
165
  await prisma.session.update({
170
166
  where: {
171
- sessionToken: session.sessionToken,
167
+ sessionToken: session.sessionToken
172
168
  },
173
169
  data: {
174
- sessionToken: newSessionToken,
175
- },
170
+ sessionToken: newSessionToken
171
+ }
176
172
  });
177
- }
178
- catch (_e) {
179
- // Sometimes, concurrent requests can happen and one would update
180
- // before the other, so prisma won't find it based on sessionToken and throw
181
- // Nothing to do in this case
173
+ } catch (_e) {
174
+ // Sometimes, concurrent requests can happen and one would update
175
+ // before the other, so prisma won't find it based on sessionToken and throw
176
+ // Nothing to do in this case
182
177
  }
183
178
  // @ts-expect-error dirty property to be removed in the patch
184
179
  finalSession.newSessionToken = newSessionToken;
@@ -193,18 +188,26 @@ export const authOptions = {
193
188
  await prisma.session.update({
194
189
  where: {
195
190
  id: session.id,
196
- OR: [{ lastActiveAt: null }, { lastActiveAt: { lt: threshold } }],
191
+ OR: [
192
+ {
193
+ lastActiveAt: null
194
+ },
195
+ {
196
+ lastActiveAt: {
197
+ lt: threshold
198
+ }
199
+ }
200
+ ]
197
201
  },
198
202
  data: {
199
- lastActiveAt: new Date(),
200
- },
203
+ lastActiveAt: new Date()
204
+ }
201
205
  });
202
- }
203
- catch (_e) {
204
- // Silently fail
206
+ } catch (_e) {
207
+ // Silently fail
205
208
  }
206
209
  return finalSession;
207
- },
210
+ }
208
211
  },
209
212
  cookies: {
210
213
  sessionToken: {
@@ -214,12 +217,8 @@ export const authOptions = {
214
217
  sameSite: 'lax',
215
218
  path: '/',
216
219
  secure: useSecureCookies,
217
- domain: process.env.NO_COOKIE_DOMAIN === 'true'
218
- ? undefined
219
- : nextAuthUrl === 'localhost'
220
- ? `.${nextAuthUrl}`
221
- : `.${new URL(nextAuthUrl).hostname}`,
222
- },
220
+ domain: process.env.NO_COOKIE_DOMAIN === 'true' ? undefined : nextAuthUrl === 'localhost' ? `.${nextAuthUrl}` : `.${new URL(nextAuthUrl).hostname}`
221
+ }
223
222
  },
224
223
  callbackUrl: {
225
224
  name: AUTH_COOKIE_CALLBACK_URL,
@@ -227,8 +226,8 @@ export const authOptions = {
227
226
  httpOnly: true,
228
227
  sameSite: 'lax',
229
228
  path: '/',
230
- secure: useSecureCookies,
231
- },
229
+ secure: useSecureCookies
230
+ }
232
231
  },
233
232
  csrfToken: {
234
233
  name: `${useSecureCookies ? '__Host-' : ''}${AUTH_COOKIE_CSRF_TOKEN}`,
@@ -236,8 +235,8 @@ export const authOptions = {
236
235
  httpOnly: true,
237
236
  sameSite: 'lax',
238
237
  path: '/',
239
- secure: useSecureCookies,
240
- },
238
+ secure: useSecureCookies
239
+ }
241
240
  },
242
241
  pkceCodeVerifier: {
243
242
  name: AUTH_COOKIE_PKCE_CODE_VERIFIER,
@@ -246,8 +245,8 @@ export const authOptions = {
246
245
  sameSite: 'lax',
247
246
  path: '/',
248
247
  secure: useSecureCookies,
249
- maxAge: 900,
250
- },
248
+ maxAge: 900
249
+ }
251
250
  },
252
251
  state: {
253
252
  name: AUTH_COOKIE_STATE,
@@ -256,8 +255,8 @@ export const authOptions = {
256
255
  sameSite: 'lax',
257
256
  path: '/',
258
257
  secure: useSecureCookies,
259
- maxAge: 900,
260
- },
258
+ maxAge: 900
259
+ }
261
260
  },
262
261
  nonce: {
263
262
  name: AUTH_COOKIE_NONCE,
@@ -265,13 +264,13 @@ export const authOptions = {
265
264
  httpOnly: true,
266
265
  sameSite: 'lax',
267
266
  path: '/',
268
- secure: useSecureCookies,
269
- },
270
- },
267
+ secure: useSecureCookies
268
+ }
269
+ }
271
270
  },
272
271
  useSecureCookies,
273
272
  jwt: {
274
- async encode(params) {
273
+ async encode (params) {
275
274
  const secret = new TextEncoder().encode(config.auth.jwtSecret);
276
275
  const alg = 'HS256';
277
276
  const tokenId = params.token?.sub;
@@ -280,40 +279,36 @@ export const authOptions = {
280
279
  }
281
280
  const user = await prisma.user.findUnique({
282
281
  where: {
283
- id: tokenId,
284
- },
282
+ id: tokenId
283
+ }
285
284
  });
286
285
  if (!user) {
287
286
  throw new Error('No user found');
288
287
  }
289
288
  const token = await new SignJWT({
290
289
  ...params.token,
291
- roles: user.groups,
292
- })
293
- .setProtectedHeader({ alg })
294
- .setIssuedAt()
295
- .setSubject(user.id)
296
- .setIssuer('flux.website')
297
- .setAudience('flux.website')
298
- .sign(secret);
290
+ roles: user.groups
291
+ }).setProtectedHeader({
292
+ alg
293
+ }).setIssuedAt().setSubject(user.id).setIssuer('flux.website').setAudience('flux.website').sign(secret);
299
294
  if (adapter.createSession) {
300
295
  await adapter.createSession({
301
296
  sessionToken: token,
302
297
  userId: user.id,
303
- expires: new Date(Date.now() + (params.maxAge ?? MAX_AGE) * 1000),
298
+ expires: new Date(Date.now() + (params.maxAge ?? MAX_AGE) * 1000)
304
299
  });
305
300
  }
306
301
  return token;
307
- },
302
+ }
308
303
  },
309
304
  session: {
310
305
  strategy: 'database',
311
306
  maxAge: MAX_AGE,
312
- generateSessionToken: async (user) => {
307
+ generateSessionToken: async (user)=>{
313
308
  return await generateSessionToken(user);
314
- },
309
+ }
315
310
  },
316
311
  pages: {
317
- signIn: '/signin',
318
- },
312
+ signIn: '/signin'
313
+ }
319
314
  };
@@ -1,3 +1,2 @@
1
1
  import type { Adapter } from 'next-auth/adapters';
2
2
  export declare function PrismaAdapter(): Adapter;
3
- //# sourceMappingURL=prisma-adapter.d.ts.map