Not getting refresh token from userAuthorizedToken

Dear team,

we have two different sets of APIs for login.

  1. Login with ABHA
  2. Login with mobile

If we try to login with ABHA and follow the below API sequence we were able to get the refresh token.

  1. /api/v2/auth/init
  2. /api/v2/auth/confirmWithMobileOTP

If we try to login with mobile and follow the below API sequence we were not able to get the refresh token

  1. /api/v2/registration/mobile/login/generateOtp
  2. api/v2/registration/mobile/login/verifyOtp
  3. api/v2/registration/mobile/login/userAuthorizedToken

Please advise us which APIs we need to call to make their behavior identical.

Thanks

@IntegrationSupport Please advice us.

Please send us error message that you are getting.

@IntegrationSupport we are not receiving any error messages but responses are different.

/api/v2/auth/confirmWithMobileOTP
{
“token”: “eyJhbGciOiJSUzUxMiJ9.eyJzdWIiOiI5MS03NzgxLTYyMjUtMjEzNSIsImNsaWVudElkIjoiaGVhbHRoaWQtYXBpIiwic3lzdGVtIjoiQUJIQS1OIiwibW9iaWxlIjoiODQ2MDQ2MzUxMCIsImhlYWx0aElkIjoiZGhydXYyMzA5MTk5M0BzYngiLCJleHAiOjE2ODMwODg3NDYsImhlYWx0aElkTnVtYmVyIjoiOTEtNzc4MS02MjI1LTIxMzUiLCJpYXQiOjE2ODMwODY5NDZ9.dD7Mv8fW-2ViSjAIkRqQWJ1wrUlwN7J8NRAkfsD1XaxZU4WJpLoWLUzYnFc1vw0I9XRW2ins8Cl5IYcxb1o2Y7dYb7_4HAg8R5Opna1MQfiVkQPThHHFFKF0cIvJEZ_avZMcFoa7lK9bz0c46s9LPttC4QA_Ftjg_dFyVpqZfeaUpmLUtAaYSfLw57Y_oWJmdnYrqKC58yWZG6DNq5ue34RQmwpP2N5VHekfU3CnAkkFfFTZG91xNy-SsCM6toyKUV55Tsl9Nwgla51Sk8C6tAzZYTsuf2KcN353gkLt0qhfQWybdCxBvMFJRTMg7bqMCaM2R5ahYgYu208v4H_KHqWmZVpN8rWmhvFrRTcYUGsZPCb38WYzZT4YPEZGuutNoBKBdH1c3kh5wjmvha1o8bfXeyvq_skFVqtvtWg3j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W-F3PEqJKImelvmV5c5q3u3mBbx-eCTf7NC4A4JDIFs4y__im7unazcsKqbhPj5fJ4fTIJIP0s9Q2sIteKnM7DGY”,
“refreshExpiresIn”: 1296000
}

/v2/registration/mobile/login/userAuthorizedToken
{
“token”: “eyJhbGciOiJSUzUxMiJ9.eyJzdWIiOiI5MS03NzgxLTYyMjUtMjEzNSIsImNsaWVudElkIjoiaGVhbHRoaWQtYXBpIiwic3lzdGVtIjoiQUJIQS1OIiwibW9iaWxlIjoiODQ2MDQ2MzUxMCIsImhlYWx0aElkIjoiZGhydXYyMzA5MTk5M0BzYngiLCJleHAiOjE2ODMwODgzMjMsImhlYWx0aElkTnVtYmVyIjoiOTEtNzc4MS02MjI1LTIxMzUiLCJpYXQiOjE2ODMwODY1MjN9.djjJ2cPtCG7NDsYLTQb_pEI706aKXVvcuHG5oRTJtFjhcbyCoXWuErZaG0cJlUtwK32TwLscwUchilYWr8LMQudyEZbL_FR3poHuAyBObpyDJUKB2VqEUoZbFpHdkkoqHTB8MX22xU5HkDfz4xq1pgSbamjSHl203Nn3Unw5-qKBvryq-vn7nPpTk3Y1cZnYahBo0PLXcMhI3LGUvTsk5SAa37-ubZg5NEF_dU6p3ulFCukdXykeDy5_aWjSc96zr6ZpR0KmrJPKpE8AEr9BwibvMYyhSlg1MIYZMh_0h-e06yb1GpyijXkKZU_O-IOzBeIfrfs3OGlRsGAZe4x3NdGuWm845YZnKC5uRH63SoHLAduyWiquEjbqlFM3f3yLH9rn6rGIiAO_zqjAsVoPxZewtwuGueDcnOyzyn7NA0TG32GLJpq4G9wDrnDhg4RgKEHLQXy64Qfp1PWBLiyG2WKbVJE3VJSJ7YWJ_AIU4_tJhaIZnbt9G1Qc0tOimswdhlQXg5UjLCkPg4HenqZrfm9_pZY9ikebIJRpuk3QF6Prmu_-EJLw2NZFfr41i25_u1P3trYdheAd_U9BTJUSJNhx98Gp0PxMBHkFoXDAgrOznb-aRTW9x1j1APwGgXwsZ_jfeAqg28ARJeretaFAdNLIsV5wO2dOMco3q_fI9rU”
}

For API’s Login with mobile - Only access token generates in this flow.

Yes, the question was why both login APIs have different response schema. From which API we can get a refresh token.