CSAPI-287 Added the code to parse the JWT token, sign the user in and try to get the refresh token