@auth/core
Advanced tools
Comparing version 0.0.0-manual.527fff6c to 0.0.0-manual.8fcd46b0
@@ -74,3 +74,3 @@ /** | ||
* import { type Adapter } from "@auth/core/adapters" | ||
* import { PrismaAdapter } from "@next-auth/prisma-adapter" | ||
* import { PrismaAdapter } from "@auth/prisma-adapter" | ||
* import { PrismaClient } from "@prisma/client" | ||
@@ -77,0 +77,0 @@ * |
@@ -74,3 +74,3 @@ /** | ||
* import { type Adapter } from "@auth/core/adapters" | ||
* import { PrismaAdapter } from "@next-auth/prisma-adapter" | ||
* import { PrismaAdapter } from "@auth/prisma-adapter" | ||
* import { PrismaClient } from "@prisma/client" | ||
@@ -77,0 +77,0 @@ * |
@@ -143,3 +143,10 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) { | ||
get value() { | ||
return Object.values(__classPrivateFieldGet(this, _SessionStore_chunks, "f"))?.join(""); | ||
// Sort the chunks by their keys before joining | ||
const sortedKeys = Object.keys(__classPrivateFieldGet(this, _SessionStore_chunks, "f")).sort((a, b) => { | ||
const aSuffix = parseInt(a.split(".")[1] || "0"); | ||
const bSuffix = parseInt(b.split(".")[1] || "0"); | ||
return aSuffix - bSuffix; | ||
}); | ||
// Use the sorted keys to join the chunks in the correct order | ||
return sortedKeys.map(key => __classPrivateFieldGet(this, _SessionStore_chunks, "f")[key]).join(""); | ||
} | ||
@@ -146,0 +153,0 @@ /** |
{ | ||
"name": "@auth/core", | ||
"version": "0.0.0-manual.527fff6c", | ||
"version": "0.0.0-manual.8fcd46b0", | ||
"description": "Authentication for the Web.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -52,3 +52,3 @@ import { Profile } from "../types.js"; | ||
*/ | ||
export type Provider<P extends Profile = Profile> = (((OIDCConfig<P> | OAuth2Config<P> | EmailConfig | CredentialsConfig) & InternalProviderOptions) | ((...args: any) => (OAuth2Config<P> | OIDCConfig<P> | EmailConfig | CredentialsConfig) & InternalProviderOptions)) & InternalProviderOptions; | ||
export type Provider<P extends Profile = any> = (((OIDCConfig<P> | OAuth2Config<P> | EmailConfig | CredentialsConfig) & InternalProviderOptions) | ((...args: any) => (OAuth2Config<P> | OIDCConfig<P> | EmailConfig | CredentialsConfig) & InternalProviderOptions)) & InternalProviderOptions; | ||
export type BuiltInProviders = Record<OAuthProviderType, (config: Partial<OAuthConfig<any>>) => OAuthConfig<any>> & Record<CredentialsProviderType, typeof CredentialsProvider> & Record<EmailProviderType, typeof EmailProvider>; | ||
@@ -55,0 +55,0 @@ export type AppProviders = Array<Provider | ReturnType<BuiltInProviders[keyof BuiltInProviders]>>; |
@@ -74,3 +74,3 @@ /** | ||
* import { type Adapter } from "@auth/core/adapters" | ||
* import { PrismaAdapter } from "@next-auth/prisma-adapter" | ||
* import { PrismaAdapter } from "@auth/prisma-adapter" | ||
* import { PrismaClient } from "@prisma/client" | ||
@@ -77,0 +77,0 @@ * |
@@ -162,4 +162,13 @@ import type { CookieOption, CookiesOptions, LoggerInstance } from "../types.js" | ||
*/ | ||
get value() { | ||
return Object.values(this.#chunks)?.join("") | ||
get value() { | ||
// Sort the chunks by their keys before joining | ||
const sortedKeys = Object.keys(this.#chunks).sort((a, b) => { | ||
const aSuffix = parseInt(a.split(".")[1] || "0"); | ||
const bSuffix = parseInt(b.split(".")[1] || "0"); | ||
return aSuffix - bSuffix; | ||
}); | ||
// Use the sorted keys to join the chunks in the correct order | ||
return sortedKeys.map(key => this.#chunks[key]).join(""); | ||
} | ||
@@ -166,0 +175,0 @@ |
@@ -65,3 +65,3 @@ import { Profile } from "../types.js" | ||
*/ | ||
export type Provider<P extends Profile = Profile> = ( | ||
export type Provider<P extends Profile = any> = ( | ||
| ((OIDCConfig<P> | OAuth2Config<P> | EmailConfig | CredentialsConfig) & | ||
@@ -68,0 +68,0 @@ InternalProviderOptions) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1255060
31967