Skip to content

Commit

Permalink
fix: apply expiresIn from the auth provider config
Browse files Browse the repository at this point in the history
  • Loading branch information
adrien2p committed Jan 27, 2023
1 parent b7c0a15 commit 76d37d4
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,6 @@ export function getAuth0AdminAuthRouter(auth0: Auth0Options, configModule: Confi
passportCallbackAuthenticateMiddlewareOptions: {
failureRedirect: auth0.admin.failureRedirect,
},
expiresIn: auth0.admin.expiresIn,
});
}
Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,6 @@ export function getAuth0StoreAuthRouter(auth0: Auth0Options, configModule: Confi
passportCallbackAuthenticateMiddlewareOptions: {
failureRedirect: auth0.store.failureRedirect,
},
expiresIn: auth0.store.expiresIn,
});
}
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,6 @@ export function getFacebookAdminAuthRouter(facebook: FacebookAuthOptions, config
passportCallbackAuthenticateMiddlewareOptions: {
failureRedirect: facebook.admin.failureRedirect,
},
expiresIn: facebook.admin.expiresIn,
});
}
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,6 @@ export function getFacebookStoreAuthRouter(facebook: FacebookAuthOptions, config
passportCallbackAuthenticateMiddlewareOptions: {
failureRedirect: facebook.store.failureRedirect,
},
expiresIn: facebook.store.expiresIn,
});
}
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,6 @@ export function getFirebaseAdminAuthRouter(firebase: FirebaseAuthOptions, config
configModule,
authPath: firebase.admin.authPath ?? '/admin/auth/firebase',
strategyName: FIREBASE_ADMIN_STRATEGY_NAME,
expiresIn: firebase.admin.expiresIn,
});
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,6 @@ export function getFirebaseStoreAuthRouter(firebase: FirebaseAuthOptions, config
configModule,
authPath: firebase.store.authPath ?? '/store/auth/firebase',
strategyName: FIREBASE_STORE_STRATEGY_NAME,
expiresIn: firebase.store.expiresIn,
});
}
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,6 @@ export function getGoogleAdminAuthRouter(google: GoogleAuthOptions, configModule
passportCallbackAuthenticateMiddlewareOptions: {
failureRedirect: google.admin.failureRedirect,
},
expiresIn: google.admin.expiresIn,
});
}
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ export function getGoogleStoreAuthRouter(google: GoogleAuthOptions, configModule
],
},
passportCallbackAuthenticateMiddlewareOptions: {
failureRedirect: google.admin.failureRedirect,
failureRedirect: google.store.failureRedirect,
},
expiresIn: google.admin.expiresIn,
});
}
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,6 @@ export function getLinkedinAdminAuthRouter(linkedin: LinkedinAuthOptions, config
passportCallbackAuthenticateMiddlewareOptions: {
failureRedirect: linkedin.admin.failureRedirect,
},
expiresIn: linkedin.admin.expiresIn,
});
}
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,6 @@ export function getLinkedinStoreAuthRouter(linkedin: LinkedinAuthOptions, config
passportCallbackAuthenticateMiddlewareOptions: {
failureRedirect: linkedin.store.failureRedirect,
},
expiresIn: linkedin.store.expiresIn,
});
}

1 comment on commit 76d37d4

@vercel
Copy link

@vercel vercel bot commented on 76d37d4 Jan 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

medusa-plugins – ./

medusa-plugins-adrien2p.vercel.app
medusa-plugins-git-main-adrien2p.vercel.app
medusa-plugins.vercel.app

Please sign in to comment.