Skip to content

Conversation

@carmenlau
Copy link
Contributor

ref DEV-3252

The implementation is a bit different from the design

  1. I kept the copy icon in blue for consistency.
  2. I didn't bold the word "Generate" since it is a text field placeholder
Screenshot 2025-12-22 at 06 42 57 Screenshot 2025-12-22 at 06 43 11

@carmenlau carmenlau requested a review from tung2744 December 22, 2025 07:03
@carmenlau carmenlau changed the title Dev 3252 portal admin api temp token Add a temporary token for admin api page for testing Dec 22, 2025
@carmenlau carmenlau force-pushed the dev-3252-portal-admin-api-temp-token branch from 87c9c3d to 8ddf3f7 Compare December 22, 2025 08:52
}

if len(secretConfig.AdminAPISecrets) == 0 {
return nil, apierrors.NewInvalid("no admin API auth key found")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this can be a internal error, because project should have at least one key.

Comment on lines 222 to 224
generateShortLivedAdminAPITokenHandle().catch(() => {
reauthentication();
});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we check the actual error thrown, and only call reauthentication if the error is related?
I think there might be other errors which we want to log an error and probably display error ui to user. e.g. Network error or server error.

@carmenlau carmenlau force-pushed the dev-3252-portal-admin-api-temp-token branch from 8ddf3f7 to 1ac36cc Compare December 24, 2025 13:00
@carmenlau
Copy link
Contributor Author

Updated, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants