Skip to Content
Open Replay OpenReplay
DOCS
  • Home
  • Getting started
  • Deployment
    • Overview EN
    • Deploy to AWS EN
    • Deploy to Azure EN
    • Deploy to GCP EN
    • Deploy to Digital Ocean EN
    • Deploy to Kubernetes EN
    • Deploy to Docker EN
    • Deploy to OVHCloud EN
    • Deploy to Scaleway EN
    • Deploy from Source EN
    • Deploy to Ubuntu EN
    • OpenReplay Administration EN
    • Upgrade Deployment EN
  • Tracker Setup
    • Overview EN
    • JS Snippet EN
    • React EN
    • Vue EN
    • Next.js EN
    • Nuxt EN
    • Remix EN
    • Svelte EN
    • Angular EN
    • Gatsby EN
    • iOS (beta) EN
    • Android (beta) EN
    • React Native EN
  • Administration
    • Overview EN
    • Cleanup Storage EN
    • Configure SMTP EN
    • External Database (Postgres) EN
    • External Storage EN
    • Proxy Settings EN
    • Secure OpenReplay EN
    • Single Sign-On (SSO) EN
  • How-tos
    • Overview EN
    • Identify a User EN
    • Send Metadata EN
    • Custom Events EN
    • Canvas and WebGL EN
    • Cross-domain iFrames EN
    • WebSockets EN
    • Network Options (Web) EN
    • Network Options (Mobile) EN
    • Sanitize Data (Web) EN
    • Sanitize Data (Mobile) EN
    • Error tracking EN
    • Upload Source maps EN
  • Guides
    • Overview EN
    • Team Management EN
    • Roles and Access EN
    • Spot (Chrome Extension) EN
    • OmniSearch EN
    • Dashboards EN
  • Plugins
    • Overview EN
    • Assist EN
    • Axios EN
    • Fetch EN
    • GraphQL EN
    • MobX EN
    • NgRx EN
    • Pinia EN
    • VueX EN
    • Profiler EN
    • Redux EN
    • Zustand EN
  • Integrations
    • Overview EN
    • Datadog EN
    • Elastic EN
    • Dynatrace EN
    • Sentry EN
    • GitHub EN
    • Slack EN
    • MSTeams EN
    • Jira Cloud EN
    • Zendesk EN
  • Troubleshooting
    • Overview EN
    • Clear Cache EN
    • Content Security Policy (CSP) EN
    • JS Errors EN
    • Localhost Testing EN
    • Session Recording Issues EN
    • Sourcemaps Issues EN
    • Supported Browsers EN
    • Deployment Issues EN
  • Exporting data
    • Overview EN
    • Exported Data EN
    • API
      • Overview
      • Assist
      • Events
      • Jobs
      • Projects
      • Sessions
      • Users
    • JavaScript SDK
      • Overview
      • Initialization
      • Methods
      • event
      • getSessionToken
      • getSessionID
      • getSessionURL
      • handleError
      • isActive
      • issue
      • setUserID
      • setUserAnonymousID
      • setMetadata
      • isFlagEnabled
      • onFlagLoads
      • reloadFags
      • getFeatureFlag
      • getAllFeatureFlags
      • clearPersistFlag
      • start
      • stop
      • coldStart
      • startOfflineRecording
      • uploadOfflineRecording
      • forceFlushBatch
      • trackWs
    • iOS SDK (beta)
      • Initialization
      • Modules
      • Start
      • Capturing Inputs
      • Network
      • Events
      • Analytics
      • Sanitization
      • setUserID
      • setMetadata
      • userAnonymousId
    • Android SDK (beta)
      • Initialization
      • Modules
      • Start
      • Capturing Inputs
      • Network
      • Events
      • Analytics
      • Sanitization
      • setUserID
      • setMetadata
      • userAnonymousId
    • React Native SDK (beta)
      • Initialization
      • Modules
      • startSession
      • Capturing Inputs
      • Events
      • Analytics
      • Sanitization
      • setUserID
      • setMetadata
    • OpenReplay CLI
  • Join Slack Community
    Blog
    Browse GitHub

On this page

  • Overview
  • Signature
  • Return value

JavaScript SDK ⁠-⁠ getSessionToken method

Danger

This method is deprecated, instead use the sessionHash parameter of the start method.

Signature

Section titled Signature
getSessionToken(): string | null | undefined

Return value

Section titled Return value

Returns the session’s hash token.

On this page

  • Overview
  • Signature
  • Return value
  • OpenReplay
  • .
  • Privacy Policy
  • .
  • Terms