signed_token

mautrix.util.signed_token.sign_token(key, payload)
Parameters
Return type

str

mautrix.util.signed_token.verify_token(key, data)
Parameters
  • key (str) –

  • data (str) –

Return type

dict | None