THE ORIONIS API
Build with clarity.
Explore the building blocks of an async-first Python framework. Every module, class, and method — connected, searchable, and ready to build with.
class documentation
class Tokens(BaseEntity): (source)
Represent the configuration of personal access token authentication.
| Method | __post |
Validate the token configuration after initialization. |
| Instance Variable | expiration |
Lifetime of a freshly issued token, in minutes. None issues tokens that never expire on their own. |
| Instance Variable | secret |
Number of random bytes used to build the secret of a token. |
| Instance Variable | table |
Table storing the issued personal access tokens. |
Inherited from BaseEntity:
| Class Method | _cached |
Retrieve field definitions and normalized types cached by class. |
| Method | get |
Describe field names, normalized types, defaults, and metadata. |
| Method | to |
Convert the dataclass instance to a recursively copied dictionary. |
| Class Variable | __slots__ |
Undocumented |
Validate the token configuration after initialization.
| Returns | |
None | This method validates the instance attributes in place. |
| Raises | |
TypeError | If any option has an unexpected type. |
ValueError | If table is empty, expiration is not positive, or secret_bytes falls outside the supported range. |