5.1.2.5 Refresh Token
A refresh token is returned from the verify API. You can use the refresh token, which is long lived (default expiry 7 months, can be configured per app), to obtain a new access token as well as a new id token and refresh token. The refresh token gets replaced and the old token will be invalidated.
Request
POST [<https://api.ezid.io/email-link/>](<https://api.ezid.io/email-link/getusers>)refresh
Content-type: application/json
{
"client_id":"8b5e6e7a45caec7b891c13a8a2484acf",
"client_secret":"4d6765d698ce1824a678ca07143decdba4c123d08743e72eb8b0bf7fc4028d8e",
"refresh_token":"83223b63-45ff-4e8a-ae11-f24462d71cbb"
}
Response
{
"id_token": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJ0ZXN0cHQxMDRAZW1haWwuY29tLmV6aWQuaW8vOGI1ZTZlN2E0NWNhZWM3Yjg5MWMxM2E4YTI0ODRhY2YiLCJpc3MiOiJodHRwczovL2V6aWQuaW8iLCJlbWFpbCI6InRlc3RwdDEwNEBlbWFpbC5jb20iLCJwcm94eV9lbWFpbCI6InRlc3RwdDEwNEBlbWFpbC5jb20iLCJub25jZSI6ImIwOThhMTJkLWFlNjctNDYxZS05YzU1LTA2NzZmYmQxNmVjMSIsImlhdCI6MTY0NTEzNzU4MCwiZXhwIjoxNjQ1MTczNTgwfQ.fr0PEqnsxU5MqtXM7V78TAXySgX2urVgpEAQUlhzKT3XL41l4LmY3tgl5kjDbavnBchKDelwjVlsxfJ-n22bR5-5Ww-IW6CEjGFPXmATULGTbRQzy9DYc22m-UY2zh3Fs0YImrcskM4K0tTJEjcxSwZ__z6MR8lGcN7TONi_0lQwsYQZYM1njd27rHiLRyZFRkNNSuTT019s75S3YbO5hqZBr2_Po8F1o3df-SlpZGRAmckdmORt9_QGhx2f2Af8g3whZ1VzjdWDtdHlF-jnMVJo1YlDRk9MGRUHX9t_Ikff4qK8J1d-ZRpiLMWJjHxrsB744tPN4Yaw4MtMRbz5l5Ah8qR9Fvcwi7ypupZNSOqR4FZbnAK4LOSavzqLVPb6_4wNMt-oACTWObEwfBjmY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