Skip to content

feat: Harden API token authentication and configuration - #63

Merged
SergkeiM merged 1 commit into
masterfrom
feature/auth-mechanisms
Aug 14, 2026
Merged

SergkeiM merged 1 commit into
masterfrom
feature/auth-mechanisms

Conversation

@SergkeiM

Copy link
Copy Markdown
Owner
  • Moves the API token to a dedicated auth configuration key.
  • Implements strict validation to reject blank API tokens.
  • Throws InvalidArgumentException for direct client instantiation and
    ConfigurationException for Laravel service resolution if the token is
    missing or invalid.
  • Clarifies documentation, emphasizing that only API tokens are supported.

These changes prevent common authentication misconfigurations from leading
to confusing runtime errors by failing early and explicitly.

- Moves the API token to a dedicated `auth` configuration key.
- Implements strict validation to reject blank API tokens.
- Throws `InvalidArgumentException` for direct client instantiation and
  `ConfigurationException` for Laravel service resolution if the token is
  missing or invalid.
- Clarifies documentation, emphasizing that only API tokens are supported.

These changes prevent common authentication misconfigurations from leading
to confusing runtime errors by failing early and explicitly.
@SergkeiM
SergkeiM merged commit 75e41c3 into master Aug 14, 2026
8 checks passed
@SergkeiM
SergkeiM deleted the feature/auth-mechanisms branch August 14, 2026 20:20
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.

1 participant