Skip to content
Discussion options

You must be logged in to vote

In your app.js file, you have the following code when a user logs in:

let logoutUrlClaim = claims.find(claim => claim.type === 'bff:logout_url');
if (logoutUrlClaim) {
    logoutUrl = logoutUrlClaim.value;
}

It's possible that the bff:logout_url claim contains a relative URL /bff/logout, which causes the URL to not work since there is no such endpoint on the frontend app side. If you keep the constant value as defined at the top of the file, logging out should work.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@pedroduarte0
Comment options

Answer selected by pedroduarte0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
BFF
Labels
None yet
2 participants