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.1.2 to 0.1.3

2

lib/assert.js

@@ -29,3 +29,3 @@ import { InvalidCallbackUrl, InvalidEndpoints, MissingAdapter, MissingAdapterMethods, MissingAPIRoute, MissingAuthorize, MissingSecret, UnsupportedStrategy, } from "./errors";

if (!options.secret) {
return new MissingSecret("Please define a `secret` in production.");
return new MissingSecret("Please define a `secret`.");
}

@@ -32,0 +32,0 @@ // req.query isn't defined when asserting `unstable_getServerSession` for example

@@ -1,2 +0,1 @@

/// <reference types="react" />
import type { Theme } from "../..";

@@ -16,4 +15,4 @@ /**

status: any;
html: JSX.Element;
html: import("preact").JSX.Element;
};
//# sourceMappingURL=error.d.ts.map

@@ -1,2 +0,2 @@

import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { jsx as _jsx, jsxs as _jsxs } from "preact/jsx-runtime";
/** Renders an error page. */

@@ -3,0 +3,0 @@ export default function ErrorPage(props) {

@@ -1,2 +0,1 @@

/// <reference types="react" />
import type { InternalProvider, Theme } from "../..";

@@ -16,3 +15,3 @@ /**

}
export default function SigninPage(props: SignInServerPageParams): JSX.Element;
export default function SigninPage(props: SignInServerPageParams): import("preact").JSX.Element;
//# sourceMappingURL=signin.d.ts.map

@@ -1,2 +0,2 @@

import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { jsx as _jsx, jsxs as _jsxs } from "preact/jsx-runtime";
export default function SigninPage(props) {

@@ -25,5 +25,3 @@ const { csrfToken, providers = [], callbackUrl, theme, email, error: errorType, } = props;

__html: `:root {--brand-color: ${theme.brandColor}}`,
} })), theme.logo && _jsx("img", { src: theme.logo, alt: "Logo", className: "logo" }), _jsxs("div", { className: "card", children: [error && (_jsx("div", { className: "error", children: _jsx("p", { children: error }) })), providers.map((provider, i) => (_jsxs("div", { className: "provider", children: [provider.type === "oauth" || provider.type === "oidc" ? (_jsxs("form", { action: provider.signinUrl, method: "POST", children: [_jsx("input", { type: "hidden", name: "csrfToken", value: csrfToken }), callbackUrl && (_jsx("input", { type: "hidden", name: "callbackUrl", value: callbackUrl })), _jsxs("button", { type: "submit", className: "button", style:
// eslint-disable-next-line
{
} })), theme.logo && _jsx("img", { src: theme.logo, alt: "Logo", className: "logo" }), _jsxs("div", { className: "card", children: [error && (_jsx("div", { className: "error", children: _jsx("p", { children: error }) })), providers.map((provider, i) => (_jsxs("div", { className: "provider", children: [provider.type === "oauth" || provider.type === "oidc" ? (_jsxs("form", { action: provider.signinUrl, method: "POST", children: [_jsx("input", { type: "hidden", name: "csrfToken", value: csrfToken }), callbackUrl && (_jsx("input", { type: "hidden", name: "callbackUrl", value: callbackUrl })), _jsxs("button", { type: "submit", className: "button", style: {
"--provider-bg": provider.style?.bg ?? "",

@@ -30,0 +28,0 @@ "--provider-dark-bg": provider.style?.bgDark ?? "",

@@ -1,2 +0,1 @@

/// <reference types="react" />
import type { Theme } from "../..";

@@ -8,3 +7,3 @@ export interface SignoutProps {

}
export default function SignoutPage(props: SignoutProps): JSX.Element;
export default function SignoutPage(props: SignoutProps): import("preact").JSX.Element;
//# sourceMappingURL=signout.d.ts.map

@@ -1,2 +0,2 @@

import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { jsx as _jsx, jsxs as _jsxs } from "preact/jsx-runtime";
export default function SignoutPage(props) {

@@ -3,0 +3,0 @@ const { url, csrfToken, theme } = props;

@@ -1,2 +0,1 @@

/// <reference types="react" />
import type { Theme } from "../..";

@@ -7,4 +6,4 @@ interface VerifyRequestPageProps {

}
export default function VerifyRequestPage(props: VerifyRequestPageProps): JSX.Element;
export default function VerifyRequestPage(props: VerifyRequestPageProps): import("preact").JSX.Element;
export {};
//# sourceMappingURL=verify-request.d.ts.map

@@ -1,2 +0,2 @@

import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { jsx as _jsx, jsxs as _jsxs } from "preact/jsx-runtime";
export default function VerifyRequestPage(props) {

@@ -3,0 +3,0 @@ const { url, theme } = props;

{
"name": "@auth/core",
"version": "0.1.2",
"version": "0.1.3",
"description": "Authentication for the web.",

@@ -5,0 +5,0 @@ "homepage": "https://authjs.dev",

@@ -59,3 +59,3 @@ import {

if (!options.secret) {
return new MissingSecret("Please define a `secret` in production.")
return new MissingSecret("Please define a `secret`.")
}

@@ -62,0 +62,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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