docs
/
Is Croct right for you?
Explore Croct
  1. Introduction
  2. Home
  3. Overview
  4. Getting started
  5. Explanation
  6. Component
  7. Slot
  8. Experiment
  9. Immersion
  10. Reference
      1. Integration
      2. Manual installation
      3. Content rendering
      4. Query evaluation
      5. Data collection
      6. Client-side setup
            1. Overview
            2. getClientId
            3. getUserToken
            4. saveClientId
            5. saveUserToken
    1. Reference
    2. SDKs
    3. PHP
  1. API reference
  2. Storage
  3. IdentityStore

getUserToken

Learn how to provide the stored user token.

An implementation must return the user token stored for the current visitor, or null when none is set.

Signature

This method has the following signature:

public function getUserToken(): ?Token

This method returns the stored Token, or null when none is set.

Previous
getClientId
Next
saveClientId
On this page
  • Signature
  • Product
  • Component CMS
  • AB testing
  • Personalization
  • Segmentation
  • User profiles
  • All features
  • Solutions
  • Customer acquisition
  • Lead generation
  • Geo-targeting
  • Revenue growth
  • Paid search traffic
  • Social ads traffic
  • Resources
  • Templates
  • Documentation
  • Changelog
  • Playbooks
  • Blog
  • Partners
  • Company
  • Service status
  • Contact support
  • Contact sales
  • Compare vendors
  • Privacy policy
  • Terms of service
  • Language
© Croct 2026