createToken($user_id, $token_name, $permissions, $expiry_days, $ip_restrictions); if ($result['success']) { $_SESSION['new_token'] = $result['token']; $_SESSION['token_details'] = [ 'name' => $token_name, 'expiry' => $expiry_days == 0 ? 'Never' : $expiry_days . ' days', 'permissions' => implode(', ', $permissions) ]; header('Location: access-token.php?success=1'); exit; } } if (isset($_POST['revoke_token'])) { $token_id = $_POST['token_id']; $tokenManager->revokeToken($token_id, $user_id); header('Location: access-token.php?revoked=1'); exit; } } // Get user's active tokens $user_tokens = $tokenManager->getUserTokens($user_id); $active_tokens_count = count($user_tokens); $token_limit = 5; // Get real-time stats $realtime_stats = $tokenManager->getRealtimeStats($user_id, 24); ?> Japanese Motors — Access Token
jmotors
Token generated successfully!
Token revoked successfully!

Generate New Token

Active Tokens

/

Token Limit

Maximum

= $token_limit): ?>
You've reached the maximum number of active tokens. Please revoke an existing token to create a new one.

Use a descriptive name to identify this token's purpose

Comma-separated list of IP addresses or ranges

Keep your tokens secure and never share them publicly. Each token will be shown only once after generation.

Active Tokens

Last 24 Hours

API Calls

Avg. Response

ms

No active tokens

permissions

Created:

Used: times

Token Security

  • Never share tokens in public repositories
  • Rotate tokens regularly
  • Use IP restrictions when possible

Token Information

What are access tokens used for?

Access tokens allow third-party applications to interact with the Jmotors API on your behalf. They provide a secure way to authenticate requests without sharing your password.

How do I use an access token?

Include the token in the Authorization header: Authorization: Bearer YOUR_TOKEN_HERE. Always use HTTPS for security.

What if my token is compromised?

Revoke it immediately from this page and generate a new one. Monitor your account for suspicious activity.