mautrix-python
API reference
mautrix.api
mautrix.client.api
mautrix.client
mautrix.client.state_store
mautrix.appservice
mautrix.crypto.attachments
mautrix.types
mautrix.util
async_db
bridge_state
config
db
ffmpeg
file_store
formatter
format_duration
logging
magic
manhole
markdown
message_send_checkpoint
opt_prometheus
program
signed_token
simple_lock
simple_template
variation_selector
mautrix-python
»
mautrix.util
»
signed_token
View page source
signed_token
mautrix.util.signed_token.
sign_token
(
key
,
payload
)
Parameters
key
(
str
) –
payload
(
dict
) –
Return type
str
mautrix.util.signed_token.
verify_token
(
key
,
data
)
Parameters
key
(
str
) –
data
(
str
) –
Return type
dict
|
None