Creating an access token
To interact with the Taskurai API, you need to create a personal access token (PAT).
To create a PAT, run the following command:
taskurai pat create --name mytoken --valid-minutes 43200 --scopes "Taskurai.Task.*"
The result of this command should be similar to the following:
# Signed into Azure account
# Retrieved subscription XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
# Retrieved resource group rg-taskurai
mytoken
├── General
│   └── ╭─────────┬─────────┬───────────────┬───────────╮
│       │ Name    │ Created │ Valid Minutes │ Unlimited │
│       ├─────────┼─────────┼───────────────┼───────────┤
│       │ mytoken │ null    │ 43200         │ false     │
│       ╰─────────┴─────────┴───────────────┴───────────╯
└── Scopes
    └── ╭─────────────────╮
        │ Scopes          │
        ├─────────────────┤
        │ Taskurai.Task.* │
        ╰─────────────────╯
# Succesfully created personal access token mytoken.
                                           
This token will only be displayed once. Copy the token to a secure place, do not share this token, do not check this token into source control.
                                           
e8gFaA8ZaetAHiS257opAr...
caution
This token grants access to the Taskurai API.
Copy the token to a secure place and do not share or check this token into source control.