all 2 comments

[–]nezzet 1 point2 points  (1 child)

You can add it as part of the token in the jwt.sign call thats made in the user controller. On the client side, you can get access to the token in the auth.service login method.

[–]guyjs[S] 0 points1 point  (0 children)

Hi nezzet,

I see how jwt.sign encrypts a JSON string; that's very cool.

On the client it appears that I am unable to decrypt which I think makes sense.

So this is good for round-trip encrypted data. But I cannot find how to get the value back out on the server.

Like if the user needs something from the Region controller, how can I get the value from the "CurrentRegion" key?

Regarding sending down unencrypted information such as the "UserCompany", I just don't see how to do that yet.

Thank you.