Added JWT encoding