Yarden Shoham d36ddfe26c
Fix CLI allowing creation of access tokens with existing name (#26071)
We are now:
- Making sure there is no existing access token with the same name
- Making sure the given scopes are valid (we already did this before but
now we have a message)

The logic is mostly taken from
a12a5f3652/routers/api/v1/user/app.go (L101-L123)

Closes #26044

Signed-off-by: Yarden Shoham <git@yardenshoham.com>
2023-07-25 23:06:11 +00:00
..
2023-07-21 17:28:19 +08:00
2023-07-21 17:28:19 +08:00
2023-07-21 17:28:19 +08:00
2023-07-21 17:28:19 +08:00
2023-07-21 17:28:19 +08:00
2023-07-21 17:28:19 +08:00
2023-07-21 17:28:19 +08:00