Skip to content

Interface: IZaloAuthResponse ​

Token pair returned by login, getAccessToken and refreshAccessToken. Zalo Kit also stores it on the device, so most apps never need to keep it themselves.

Properties ​

PropertyTypeDescription
accessTokenstringToken to call Zalo APIs with. Short-lived (about 1 hour).
expiresAtnumberUnix timestamp (milliseconds) when the access token expires. 0 when unknown.
expiresInnumberSeconds until the access token expires, measured when this result was produced. 0 when Zalo did not report an expiry.
refreshTokenstringToken used to get a new access token. Single-use: every refresh returns a new one, which Zalo Kit stores for you.

Released under the MIT License.