Skip to content

Commit

Permalink
Refresh token for link/unlink SLO (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
mgelgon authored Feb 7, 2024
1 parent cb747a9 commit ec250f6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions cartridges/int_reachfive_sfra/cartridge/controllers/Account.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,16 @@ server.append('Show', function (req, res, next) {
passwordResetCTA = !viewData.account.isExternallyAuthenticated;
}

//If Social Unlink / Link displayed
if( socialNetworksCTA )
{
var tknStatus = reachFiveHelper.verifySessionAccessTkn(); //Check and refresh the access token if needed
if( !tknStatus.success )
{
socialNetworksCTA = false;
}
}

res.setViewData({
reachfive: {
passwordUpdateCTA: passwordUpdateCTA,
Expand Down

0 comments on commit ec250f6

Please sign in to comment.