@auth/express
Advanced tools
Comparing version 0.5.0 to 0.5.1
@@ -34,3 +34,3 @@ /** | ||
* ### Provider Configuration | ||
* The callback URL used by the [providers](https://authjs.dev/reference/core/modules/providers) must be set to the following, unless you mount the `ExpressAuth` handler on a different path: | ||
* The callback URL used by the [providers](https://authjs.dev/reference/core/providers) must be set to the following, unless you mount the `ExpressAuth` handler on a different path: | ||
* | ||
@@ -70,3 +70,3 @@ * ``` | ||
* ```ts | ||
* export function authenticatedUser( | ||
* export async function authenticatedUser( | ||
* req: Request, | ||
@@ -129,2 +129,3 @@ * res: Response, | ||
import * as e from "express"; | ||
export { AuthError, CredentialsSignin } from "@auth/core/errors"; | ||
export type { Account, DefaultSession, Profile, Session, User, } from "@auth/core/types"; | ||
@@ -131,0 +132,0 @@ export declare function ExpressAuth(config: Omit<AuthConfig, "raw">): (req: e.Request, res: e.Response, next: e.NextFunction) => Promise<void>; |
@@ -34,3 +34,3 @@ /** | ||
* ### Provider Configuration | ||
* The callback URL used by the [providers](https://authjs.dev/reference/core/modules/providers) must be set to the following, unless you mount the `ExpressAuth` handler on a different path: | ||
* The callback URL used by the [providers](https://authjs.dev/reference/core/providers) must be set to the following, unless you mount the `ExpressAuth` handler on a different path: | ||
* | ||
@@ -70,3 +70,3 @@ * ``` | ||
* ```ts | ||
* export function authenticatedUser( | ||
* export async function authenticatedUser( | ||
* req: Request, | ||
@@ -130,2 +130,3 @@ * res: Response, | ||
import { toWebRequest, toExpressResponse } from "./lib/index.js"; | ||
export { AuthError, CredentialsSignin } from "@auth/core/errors"; | ||
export function ExpressAuth(config) { | ||
@@ -132,0 +133,0 @@ return async (req, res, next) => { |
{ | ||
"name": "@auth/express", | ||
"description": "Authentication for Express.", | ||
"version": "0.5.0", | ||
"version": "0.5.1", | ||
"type": "module", | ||
@@ -34,3 +34,3 @@ "files": [ | ||
"dependencies": { | ||
"@auth/core": "0.25.0" | ||
"@auth/core": "0.28.1" | ||
}, | ||
@@ -60,5 +60,5 @@ "devDependencies": { | ||
"clean": "rm -rf lib index.* src/lib/providers", | ||
"test": "vitest -c ../utils/vitest.config.ts", | ||
"test": "vitest run -c ../utils/vitest.config.ts", | ||
"providers": "node ../utils/scripts/providers" | ||
} | ||
} |
@@ -34,3 +34,3 @@ /** | ||
* ### Provider Configuration | ||
* The callback URL used by the [providers](https://authjs.dev/reference/core/modules/providers) must be set to the following, unless you mount the `ExpressAuth` handler on a different path: | ||
* The callback URL used by the [providers](https://authjs.dev/reference/core/providers) must be set to the following, unless you mount the `ExpressAuth` handler on a different path: | ||
* | ||
@@ -70,3 +70,3 @@ * ``` | ||
* ```ts | ||
* export function authenticatedUser( | ||
* export async function authenticatedUser( | ||
* req: Request, | ||
@@ -133,2 +133,3 @@ * res: Response, | ||
export { AuthError, CredentialsSignin } from "@auth/core/errors" | ||
export type { | ||
@@ -135,0 +136,0 @@ Account, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
61296
268
974
+ Added@auth/core@0.28.1(transitive)
- Removed@auth/core@0.25.0(transitive)
Updated@auth/core@0.28.1