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()
| Property | Type | Description |
|---|---|---|
events | EventCallbacks<OAuth2EventName> | Event handlers |
OAuth2RefreshResult
Token refresh result from OAuth2.refresh()
| Property | Type | Description |
|---|---|---|
access_token | string | New access token |
refresh_token | string | New refresh token |
expires_at | string | Access token expiration date and time '2026-04-01 10:15:20' |