File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
packages/frameworks-express/src Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -143,7 +143,9 @@ export type {
143
143
User ,
144
144
} from "@auth/core/types"
145
145
146
- export function ExpressAuth ( config : Omit < AuthConfig , "raw" > ) {
146
+ export type ExpressAuthConfig = Omit < AuthConfig , "raw" >
147
+
148
+ export function ExpressAuth ( config : ExpressAuthConfig ) {
147
149
return async ( req : e . Request , res : e . Response , next : e . NextFunction ) => {
148
150
e . json ( ) ( req , res , async ( err ) => {
149
151
if ( err ) return next ( err )
@@ -166,7 +168,7 @@ export type GetSessionResult = Promise<Session | null>
166
168
167
169
export async function getSession (
168
170
req : e . Request ,
169
- config : Omit < AuthConfig , "raw" >
171
+ config : ExpressAuthConfig
170
172
) : GetSessionResult {
171
173
setEnvDefaults ( process . env , config )
172
174
const url = createActionURL (
You can’t perform that action at this time.
0 commit comments