Refresh Token

URL

Tokeni yenilemek için ilgili endpoint ve https metod bilgisi aşağıda verilmiştir. (Test ortamında token süresi 24 saattir. Bu süre canlıda 1 saat.)

HTTP Method URL
POST /auth/refresh-token

İstek Parametreleri (Body-raw)

Parametre Tip Zorunlu Açıklama
refreshToken string Evet Yenileme Token'i

Dönüş Parametreleri

Parametre Tip Açıklama
orgcode string Organizasyon Kodu
usercode string Kullanıcı Kodu
role string Rol
accessToken string Erişim Token'i
refreshToken string Yenileme Token'i
expires_in int Token Geçerlilik Süresi (Dakika cinsinden)

İSTEK (Body-raw) :

{
  "refreshToken": "WIRUh0QkGCıgWFw5757HJs0xXdJPzJdyeR7VhCJ1K6YiwWQ="
}

YANIT:

{
    "orgcode": "SPYDM",
    "role": "h_admin",
    "accessToken": "eyJhbGciOiJodHRwOi8vd3d3LnczLm9yZy8yMDAxLzA0L3htbGRzaWctbW9yZSNobWFjLXNoYTI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoiMDI0MzY3NTMyMiIsImh0dHA6Ly9zY2hlbWFzLnhtbHNvYXAub3JnL3dzLzIwMDUvMDUvaWRlbnRpdHkvY2xhaW1zL2VtYWlsYWRkcmVzc6755475475475475475450ciIsImh0dHA6Ly9zY2hlbWFzLnhtbHNvYXAub3JnL3dzLzIwMDkvMDkvaWRlbnRpdHkvY2xhaW1zL2FjdG9yIjoiU1BZRE0iLCJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL3dzLzIwMDgvMDYvaWRlbnRpdHkvY2xhaW1zL3JvbGUiOlsiaGJoIiwib2JoIiwiYWRtaW4iXSwiZXhwIjoxNjc3MDYxMzQxLCJpc3MiOiJodHRwczovL3ByZXByb2QtYXBpLWlkZW50aXR5LW9wZW5iYW5raW5nLndhbGxldGdhdGUuaW8iLCJhdWQiOiJodHRwczovL3ByZXByb2QtYXBpLWlkZW50aXR5LW9wZW5iYW5raW5nLndhbGxldGdhdGUuaW8ifQ.KmKl2YgCBG1o8E7N4f6Rd0KUtWTgFMcK4YOdU8xbonk",
    "refreshToken": "ibAeCOlV6TCfvKTXm1JQo+NSsFUtt+M0zmzadaq89W4=",
    "expires_in": 2870
}