Skip to Content
Open Replay OpenReplay
DOCS
Search⌘+K
      Intro
    • Home
    • Getting started
    • Deployment
    • Deployment
    • Configuration
    • SDKs
    • JavaScript
      • Overview
      • Initialization
      • Methods
        • event
        • getSessionToken
        • getSessionID
        • getSessionURL
        • handleError
        • isActive
        • issue
        • setUserID
        • setUserAnonymousID
        • setMetadata
        • isFlagEnabled
        • reloadFags
        • getFeatureFlag
        • getAllFeatureFlags
        • clearPersistFlag
        • start
        • stop
        • coldStart
        • startOfflineRecording
        • uploadOfflineRecording
        • forceFlushBatch
        • trackWs
      • Network Options
      • Sanitize Data
      • Private Mode
      • Frameworks
    • iOS (beta)
    • Android (beta)
    • React Native (beta)
    • Products
    • Session Replay
    • Product Analytics
    • Co-browsing
    • Platform
    • AI
    • Plugins
    • Integrations
    • API
    • Spot (Chrome Extension)
    • Materials
    • Exporting data
    • Troubleshooting
    • Tutorials
    • OpenReplay CLI
  • Join Slack Community
    Blog
    Browse GitHub
Search⌘+K
      Intro
    • Home
    • Getting started
    • Deployment
    • Deployment
    • Configuration
    • SDKs
    • JavaScript
      • Overview
      • Initialization
      • Methods
        • event
        • getSessionToken
        • getSessionID
        • getSessionURL
        • handleError
        • isActive
        • issue
        • setUserID
        • setUserAnonymousID
        • setMetadata
        • isFlagEnabled
        • reloadFags
        • getFeatureFlag
        • getAllFeatureFlags
        • clearPersistFlag
        • start
        • stop
        • coldStart
        • startOfflineRecording
        • uploadOfflineRecording
        • forceFlushBatch
        • trackWs
      • Network Options
      • Sanitize Data
      • Private Mode
      • Frameworks
    • iOS (beta)
    • Android (beta)
    • React Native (beta)
    • Products
    • Session Replay
    • Product Analytics
    • Co-browsing
    • Platform
    • AI
    • Plugins
    • Integrations
    • API
    • Spot (Chrome Extension)
    • Materials
    • Exporting data
    • Troubleshooting
    • Tutorials
    • 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
Change Log   ↗

Support us by starring our repo!

GitHub Repo stars
  • OpenReplay
  • .
  • Privacy Policy
  • .
  • Terms