Skip to content

Switch to Bearer token auth to match platform API#1

Open
Brend4n wants to merge 1 commit intorybbit-io:mainfrom
FeatherMC:main
Open

Switch to Bearer token auth to match platform API#1
Brend4n wants to merge 1 commit intorybbit-io:mainfrom
FeatherMC:main

Conversation

@Brend4n
Copy link

@Brend4n Brend4n commented Jan 30, 2026

Rybbit now expects key to be passed in header rather than payload, so this change was needed to work with the latest rybbit version.

Summary by CodeRabbit

  • Refactor

    • Migrated authentication from request payload to HTTP Authorization headers.
  • Breaking Changes

    • API payload structure has been updated and no longer includes the authentication parameter in the request body.

✏️ Tip: You can customize this high-level summary in your review settings.

@coderabbitai
Copy link

coderabbitai bot commented Jan 30, 2026

📝 Walkthrough

Walkthrough

This change migrates API key authentication from being included in the JSON request payload to using an HTTP Authorization header with Bearer token. The api_key field is removed from the TrackPayload interface, and request construction now sets an Authorization header instead.

Changes

Cohort / File(s) Summary
Authentication Header Migration
src/tracker.ts, src/types.ts
Shifted API key authentication from JSON payload to HTTP Authorization header with Bearer token. Removed api_key field from TrackPayload interface; updated request construction to use Authorization header instead of embedding credentials in payload.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Poem

🐰 From payloads deep to headers high,
Bearer tokens dance and fly!
Secrets move from body to crest,
Authentication at its best! ✨

🚥 Pre-merge checks | ✅ 2 | ❌ 1
❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: switching from API key in payload to Bearer token authentication in HTTP headers, which aligns with the core modifications in both src/tracker.ts and src/types.ts.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Tip

🧪 Unit Test Generation v2 is now available!

We have significantly improved our unit test generation capabilities.

To enable: Add this to your .coderabbit.yaml configuration:

reviews:
  finishing_touches:
    unit_tests:
      enabled: true

Try it out by using the @coderabbitai generate unit tests command on your code files or under ✨ Finishing Touches on the walkthrough!

Have feedback? Share your thoughts on our Discord thread!


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

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