Skip to content

OAuth2

SDK exports types for working with OAuth2 authorization:

ts
import type {
  OAuth2Params,
  OAuth2RefreshResult
} from '@aspro-cloud/miniapp-jssdk'

Types

OAuth2Params

Initialization parameters for OAuth2.initialize()

PropertyTypeDescription
eventsEventCallbacks<OAuth2EventName>Event handlers

OAuth2RefreshResult

Token refresh result from OAuth2.refresh()

PropertyTypeDescription
access_tokenstringNew access token
refresh_tokenstringNew refresh token
expires_atstringAccess token expiration date and time '2026-04-01 10:15:20'

Published under the MIT license.