I'm new to authentication, and just trying out JWT authentication on a small express app.
I've got a user authentication setup using JWTs, and I'm using the subject as the user's email.
Is this a good practice?
If I decode the JWT on jwt.io, I see:
{
"sub": "test_user_3@test.com",
"iat": 1489963760,
"exp": 1490568560
}
Is that how it is supposed to work?