Skip to content

App Context

After initializing Frame you can get the current application context.

The context always contains information about:

  • the platform account domain
  • the interface language
  • the application and installed version
  • user authorization (OAuth2 tokens)
  • the embedding placement in the interface

Example

ts
import { App } from '@aspro-cloud/miniapp-jssdk'

const frame = await App.initializeFrame()

// getting the context
const context = await frame.getContext()

Published under the MIT license.