tokens
Token classes for the Datalayer SDK.
class Token(uid: str, name: str, description: str, token_type: Union[str, datalayer_core.tokens.create.createapp.TokenType] = <TokenType.USER: 'user_token'>, **kwargs: dict[str, str]) -> None
Represents a token in Datalayer.
Parameters
-
uid : str
Unique identifier for the token.
-
name : str
Name of the token.
-
description : str
Description of the token.
-
token_type : str
Type of the token (e.g., "user", "admin").
-
**kwargs : dict[str, str]
Additional keyword arguments.
__init__(uid: str, name: str, description: str, token_type: Union[str, datalayer_core.tokens.create.createapp.TokenType] = <TokenType.USER: 'user_token'>, **kwargs: dict[str, str]) -> None
Initialize a token object.
Parameters
-
uid : str
Unique identifier for the token.
-
name : str
Name of the token.
-
description : str
Description of the token.
-
token_type : str
Type of the token (e.g., "generic", "password", "key", "token").
-
**kwargs : dict[str, str]
Additional keyword arguments.