Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[BSS-106] Add RefreshSession Lexicon and Unit Tests for Token Handling #51

Merged
merged 1 commit into from
Jan 25, 2025

Conversation

shahmal1yev
Copy link
Owner

  • Introduced RefreshSession class under Atproto\Lexicons\Com\Atproto\Server namespace.

    • Implements LexiconContract to handle session refresh logic.
    • Supports authenticated endpoints using the AuthenticatedEndpoint trait.
    • Allows token management with token() method to set or retrieve the token.
  • Added unit tests for RefreshSession in tests/Unit/Lexicons/Com/Atproto/Server/RefreshSessionTest.php.

    • Ensures tokens can be set and updated.
    • Verifies the functionality works without authentication.

- Introduced `RefreshSession` class under `Atproto\Lexicons\Com\Atproto\Server` namespace.
  - Implements `LexiconContract` to handle session refresh logic.
  - Supports authenticated endpoints using the `AuthenticatedEndpoint` trait.
  - Allows token management with `token()` method to set or retrieve the token.

- Added unit tests for `RefreshSession` in `tests/Unit/Lexicons/Com/Atproto/Server/RefreshSessionTest.php`.
  - Ensures tokens can be set and updated.
  - Verifies the functionality works without authentication.
Copy link

@shahmal1yev shahmal1yev merged commit e4fd622 into 1.x Jan 25, 2025
5 checks passed
@shahmal1yev shahmal1yev deleted the bss-106 branch January 25, 2025 15:26
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant