Please help provide example for Session's additionalFields

i keep trying to add additionalFields to session, but it never appears. I updated to the 1.4 beta and tried again and it still doesn't work. i am using secondaryStorage and as i check redis to see if session contains my new field, it doesn't. this is how i configured it:
session: {
additionalFields: {
verified: {
type: 'boolean',
input: false,
required: true,
defaultValue: false,
returned: true,
},
},
session: {
additionalFields: {
verified: {
type: 'boolean',
input: false,
required: true,
defaultValue: false,
returned: true,
},
},
by default i want session to mark verified as false but i don't see verified at ll in session object when checking redis.
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?