Skip to content

Commit

Permalink
refactor: update logoutController to use end_session_endpoint from is…
Browse files Browse the repository at this point in the history
…suer metadata
  • Loading branch information
danny-avila committed Feb 3, 2025
1 parent 9749db6 commit cafaf60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/server/controllers/auth/LogoutController.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const logoutController = async (req, res) => {
process.env.OPENID_ISSUER
) {
const issuer = await Issuer.discover(process.env.OPENID_ISSUER);
const redirect = issuer.end_session_endpoint;
const redirect = issuer.metadata.end_session_endpoint;
if (!redirect) {
logger.warn(
'[logoutController] end_session_endpoint not found in OpenID issuer metadata. Please verify that the issuer is correct.',
Expand Down

0 comments on commit cafaf60

Please sign in to comment.