Custom server side session

Hello everyone.

Someones knows how I can to create a custom server side session to identify each user by custom field, the idea is to not have to implement manually login state management nor method to set it up.

Thanks in advance.

Have you tried the meteor accounts packages?

Yes, but I have no found a way to inject something into the login token.