Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@auth/core

Package Overview
Dependencies
Maintainers
2
Versions
101
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@auth/core - npm Package Compare versions

Comparing version 0.0.0-manual.527fff6c to 0.0.0-manual.8fcd46b0

2

adapters.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc