LogoLogo
  • Ứng dụng VinID
  • Giới thiệu chung
    • Dịch vụ thanh toán VinID Pay
    • Dịch vụ loyalty VinID Point
    • Quy trình tích hợp
  • Tài liệu tích hợp
    • Môi trường tích hợp
    • Quy tắc kết nối chung
      • Request Header
      • X-Key-Code
      • Signature - chữ kí điện tử
      • Ví dụ Request / Response
      • Extra Data
    • OneID SSO Integration (PKCE)
      • Auth endpoint
      • Token endpoint
      • Refresh token
      • Logout endpoint
      • Profile endpoint
      • OpenID Configuration
    • Tích hợp với VinID Pay
      • Thanh toán Merchant QR
      • Thanh toán Transaction QR
      • Thanh toán App to App
      • Thanh toán Web Payment
      • Thanh toán Linked Account
      • Dịch vụ chi hộ
      • Callback / IPN
      • Refund giao dịch
    • Tích hợp với VinID Loyalty
      • Dịch vụ lấy hạng thành viên trung thành
      • Dịch vụ VinID Giftcode
        • Deprecated APIs
      • Dịch vụ Topup VinID Point
        • Deprecated APIs
    • Tích hợp với VinID Voucher
      • Dịch vụ E-Voucher
    • Mã lỗi chung
  • Đối soát
    • Đối soát Ví điện tử VinID Pay
  • Khác
    • Thuật ngữ
    • Câu hỏi thường gặp
    • Ứng dụng quản lý
      • Merchant Mobile App
      • Merchant Website
    • Thông tin hỗ trợ
Powered by GitBook
On this page

Was this helpful?

Export as PDF
  1. Tài liệu tích hợp
  2. OneID SSO Integration (PKCE)

Refresh token

Lấy token mới khi hết hạn sau một thời gian (mặc định: 1 giờ)

/oauth2/token

POST https://oauth-qc.vinid.dev/oauth2/token

Request Body

Name
Type
Description

redirect_uri

string

client_secret

string

Không cần đối với luồng PKCE

client_id

string

refresh_token

string

grant_type

string

{
    "access_token": "string",
    "expires_in": 3600,
    "id_token": "string",
    "refresh_token": "string",
    "scope": "openid offline some_scope",
    "token_type": "bearer"
}
curl --location --request POST 'https://oauth2-dev.vinid.dev/oauth2/token' \
--form 'grant_type=refresh_token' \
--form 'refresh_token={refresh_token}' \
--form 'client_id={client_id}' \
--form 'redirect_uri=https://your-home-page'

Thời gian hết hạn của refresh_token mặc định là 720 giờ

PreviousToken endpointNextLogout endpoint

Last updated 4 years ago

Was this helpful?