We want to share profile after HIP QR scan.
We have generated token via below APIS.
cm/patients/profile/auth-init
cm/patients/profile/auth-confirm
X-AUTH-TOKEN: eyJhbGciOiJSUzUxMiJ9.eyJzdWIiOiJyYWh1bDM0NTZAc2J4IiwiY2xpZW50SWQiOiJQSFItV0VCIiwic3lzdGVtIjoiQUJIQS1BIiwicmVxdWVzdGVySWQiOiJQSFItV0VCIiwicGhyTW9iaWxlIjoiNzg0MDA5OTg2OCIsImV4cCI6MTY3NzcwODA5NSwiaWF0IjoxNjc3NzAwODk1LCJwaHJBZGRyZXNzIjoicmFodWwzNDU2QHNieCIsInR4bklkIjoiOTg3YWFkMzItM2I5Ni00NDU3LTk4MDgtYjViNTg1NzQwMmNlIn0.FNHXCpXQU9hWqpSMAlGBqV3fVG3TifA3_GsJ-xrR0bvno4bc0AaZRlb-Xk5gWiHMTPsFKdlmlmL70NXELLwa4ToP8tIz3PNgq4TyFcNPP3WGaACj7WVKFxfNL-kecx_9aB9AfzVQ8e4W9lEPiz2Eu7gzRLosLCaxozaHSisyc5Wh7p4l7Zb_KUnL4bEVi8WH9bcjnWNtJv0BPbIdbyrfBY5E6zgSO6jmHCJwWfi-VwcP9QSu7yJk6JLKipkfxF85nlf0cnOoNDXdOu_nPAJlU7jiftDJA2qn-3ZOtJubLL4L8HtLt-czGyeZsnZnyhXTh1zBtapXLAQ38JSlNU1SXg
API: https://dev.abdm.gov.in/cm/v1/patients/profile/share
Request:
{“hipDetails”:{“code”:“12345”,“hipId”:“IN3410000260”},“intent”:{“type”:""},“location”:{“latitude”:"",“longitude”:""},“requestId”:“a62d7f4d-78db-4a57-b3df-cbd6b73ebcb9”}
Response: 401 Unauthorized
{“error”:{“code”:1401,“message”:“Token verification failed”}}
Token verification not happening.