Working version of JWT auth module.