I am getting the error
Unexpected token u code: InternalError message: Unexpected token u
in web view when I hit the request for authentication
I solved it.. We also have to provide state parameters with the request.