
Implement a TRPC endpoint to rotate the key
- When user click on rotate key, give them them an
AlertDialog, we are using shadcn/ui, please use this component
- The message should say
Are you sure you want to rotate this key? please make sure to replace existing API keys if you have used it anywhere.
- Buttons should be
Cancel and Continue
- When clicking on
Continue show the same modal we have on create-key.tsx component, auto copy the regenerated key, basically the flow should similar to creating new key.
Implement a TRPC endpoint to rotate the key
AlertDialog, we are using shadcn/ui, please use this componentAre you sure you want to rotate this key? please make sure to replace existing API keys if you have used it anywhere.CancelandContinueContinueshow the same modal we have oncreate-key.tsxcomponent, auto copy the regenerated key, basically the flow should similar to creating new key.