Refetching session for additionalFields change

Hey,

I added an additionalField to my session called activeProjectId.

I didn't find something to update the session from the official API. So per a Discord conversation I update it via my ORM.
Now when I call my set-active endpoint I need to update the session to reflect the change.

The only way I found was $store.notfiy("$sessionSignal"). This is undocumented and is probably going to change in the future.

Do you have an "right" way to update my session after a change to my session?

Thanks in advance!
Was this page helpful?