user-jwt

Retrieve user JWT tokens, usernames, and access tokens for ByteCloud CN and I18N regions.

Updated Apr 30, 2026
One-click install
npx skills add https://github.com/yuezhen-huang/my-bytedance-skillhub --skill user-jwt-yuezhen-huang
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: user-jwt
Source: https://github.com/yuezhen-huang/my-bytedance-skillhub/tree/main/user-jwt
Command: npx skills add https://github.com/yuezhen-huang/my-bytedance-skillhub --skill user-jwt-yuezhen-huang

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? When calling ByteCloud APIs or debugging authenticated requests, developers need a valid JWT token or username for the current logged-in account. Manually locating and copying credentials is error-prone, and tokens expire. This Skill retrieves them directly via gdpa-cli for both CN and I18N regions. ## Core Features & Use Cases - JWT Token Retrieval: Print the current user's JWT token for the CN or I18N region as plain text, ready to use in Authorization headers. - Username and AccessToken Lookup: Fetch the logged-in username or AccessToken for a specified region. - Use Case: You need to call an internal ByteCloud API with curl. Run the login command with the print-jwt flag, capture the token into a shell variable, and pass it as a Bearer token in the request header. ## Quick Start Get my ByteCloud CN region JWT token so I can authenticate an API request.

Frequently Asked Questions about user-jwt

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I get a JWT token for ByteCloud API authentication?

Run gdpa-cli login -p cn for the CN region or gdpa-cli login -p i18n for the I18N region. The -p flag is shorthand for --print-jwt and outputs the token as plain text you can assign to a shell variable.

How to get the current logged-in username with gdpa-cli?

Use gdpa-cli login -u cn or gdpa-cli login -u i18n. The -u flag is shorthand for --print-user and prints the username of the currently logged-in account for the specified region.

Does gdpa-cli support both CN and I18N ByteCloud regions?

Yes, the login command accepts cn and i18n as region arguments for printing JWTs, usernames, and access tokens. You must log in to each region separately before retrieving its credentials.

What happens if my JWT token is expired or I am not logged in?

JWT tokens have a limited validity period and must be refreshed after expiry. If you are not logged in or the token has expired, the command automatically triggers the login flow before printing the credential.

How do I use the JWT token in an HTTP request?

Capture the token with JWT_TOKEN=$(gdpa-cli login -p cn), then pass it as a Bearer token: curl -H "Authorization: Bearer $JWT_TOKEN" followed by your API URL. The output is plain text with no extra formatting.