I’m trying to use a custom session that has some additional props on it that we need. I have a custom user repository since we’re storing the user data in our own table instead of the UserAuth table and a custom user session to contain the additional data we need. The authentication request is going through with no issues but the session is not saving to the cache - if I examine
base.GetSession(): in a ServiceInterface method it’s empty with the exception of the sessionId and the createdDate.
I think the issue is I’m not populating the data in the appropriate hook and not saving the session in the appropriate hook but I’m not sure where I should be doing both of those.
I have a gist up at https://gist.github.com/ultimatemonty/12a46ae3595e2729b4ac that shows the existing code. Thanks in advance! I love building APIs with SS - so easy to reason about!