Overview
tokens.create(...) creates a short-lived client token for frontend, mobile, browser, or desktop realtime access.
Setup
Provide:
- identifier_id
- optional identifier_label
- optional allowed_channels
- optional expires_in
- optional metadata
Code example
token = pulsegrid.tokens.create(
identifier_id="user_123",
identifier_label="Kwandile",
allowed_channels=["demo-channel"],
expires_in=3600,
metadata={"source": "python_backend"},
)
print(token)
Notes
Normally created by your backend after authenticating the real user in your own system.