-
Notifications
You must be signed in to change notification settings - Fork 932
feat(site): add ability to create tokens from account tokens page #6608
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
value: "custom", | ||
8000 | } | |
|
||
export const filterByMaxTokenLifetime = ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will write some unit tests for these helper functions
lifetime: 30, | ||
} | ||
|
||
const CreateTokenPage: FC = () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will add some visual stories/tests for this new form
@@ -0,0 +1,73 @@ | |||
import i18next from "i18next" | |||
|
|||
export const NANO_HOUR = 3600000000000 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a bit of a pain - explanation here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome work!
resolves #5778
Some notes:
TextField
component) as we are on an older version of MUI; as such, styling options are limited.Token creation without `--max-token-lifetime set

Token creation with a

--max-token-lifetime
of 20 days set