Validate jwt data and add js redirects