Revise docs for working with CRUD secrets

This commit is contained in:
Tuan Dang
2023-03-06 18:52:30 +07:00
parent ff2ee989d6
commit 6abbc1c54d
24 changed files with 1807 additions and 568 deletions
@@ -203,7 +203,7 @@ export const ProjectSettingsPage = () => {
}
};
const onCreateServiceToken = async ({ environment, expiresIn, name }: CreateServiceToken) => {
const onCreateServiceToken = async ({ environment, expiresIn, name, permissions }: CreateServiceToken) => {
// type guard
if (!latestFileKey) return '';
try {
@@ -228,9 +228,9 @@ export const ProjectSettingsPage = () => {
expiresIn: Number(expiresIn),
name,
workspaceId: workspaceID,
randomBytes
randomBytes,
permissions
});
console.log(res);
createNotification({
text: 'Successfully created a service token',
type: 'success'