Skip to content
This repository has been archived by the owner on Dec 13, 2018. It is now read-only.

Updating data in Okta portal is overwritten if user is logged in #629

Open
atrp opened this issue Aug 22, 2017 · 0 comments
Open

Updating data in Okta portal is overwritten if user is logged in #629

atrp opened this issue Aug 22, 2017 · 0 comments

Comments

@atrp
Copy link

atrp commented Aug 22, 2017

Example: If we update a custom field in Okta and logout out from our application and log back in the data we previously saved in Okta is replaced by the data stored in the users's session even though they logged out.

We do want to update a custom filed when we login (but apparently it updates all custom data which also has the previous data stored in the session).

    postLoginHandler: function(acct, req, res, next) {
        acct.customData.lastLogin = moment().tz('America/Chicago').format('YYYY-MM-DD');
        acct.customData.save();
        next();
    },

This could be related to #605

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant