Loading...
Loading...
Use when Wildix API tokens are needed for x-bees, x-hoppers, or Collaboration 7 — or when tokens are missing, expired, or the user asks to log in, log out, sign out, revoke access, or remove authorization from a Wildix app
npx skill4agent add wildix/agent-skills wildix-auth<BASE_DIR>/tokens/IdTokenget-token.shID_TOKEN=$(bash <BASE_DIR>/scripts/get-token.sh "<email>" "<BASE_DIR>")ls <BASE_DIR>/tokens/*.json 2>/dev/null | xargs -I{} jq -r '.email' {} 2>/dev/nullAskUserQuestionID_TOKEN=$(bash <BASE_DIR>/scripts/get-token.sh "<email>" "<BASE_DIR>")AskUserQuestionbash <BASE_DIR>/scripts/initiate-auth.sh "<email>" | tee /tmp/wildix_auth_session.txtAskUserQuestion"A verification code was sent to <email>. Enter the code (use 'Other' to type it):"
SESSION=$(cat /tmp/wildix_auth_session.txt)
bash <BASE_DIR>/scripts/respond-auth.sh "<email>" "$SESSION" "<CODE>" "<BASE_DIR>"ID_TOKEN=$(bash <BASE_DIR>/scripts/get-token.sh "<email>" "<BASE_DIR>")<BASE_DIR>/tokens/<sanitized_email>.prod.json@_at_user_at_wildix.com.prod.json{
"email": "user@wildix.com",
"AccessToken": "...",
"IdToken": "...",
"RefreshToken": "...",
"ExpiresIn": 3600,
"savedAt": "2026-01-01T00:00:00Z"
}ls <BASE_DIR>/tokens/*.json 2>/dev/null | xargs -I{} jq -r '.email' {} 2>/dev/nullAskUserQuestionAskUserQuestionbash <BASE_DIR>/scripts/revoke-token.sh "<email>" "<BASE_DIR>"AskUserQuestion"Global sign-out will immediately invalidate ALL active sessions for— x-bees web, mobile app, all other agents and devices. You will need to re-authenticate everywhere. Are you sure?"<email>
bash <BASE_DIR>/scripts/global-signout.sh "<email>" "<BASE_DIR>"GlobalSignOutNote:requires a non-expired AccessToken. If the local token is expired (>1h old), runGlobalSignOutfirst to refresh it, then runget-token.sh.global-signout.sh
| Problem | Fix |
|---|---|
| Using AccessToken instead of IdToken | Always use IdToken for Wildix API |
| Not checking expiry before API call | Use |
| Wrong code or expired session | Re-run Mode 2 step 2 (Cognito session valid ~10 min) |
| |