Skip to content

Conversation

@JasonWarrenUK
Copy link
Contributor

@JasonWarrenUK JasonWarrenUK commented Apr 1, 2025

ALL OF THIS, IN THE BIN, STRAIGHT AWAY, GET IN

pls enjoy this collection of THINGS I WANT TO PUT IN THE BIN yesterday

What DOESN'T this update do?

  • You want auth? You got auth.
  • You want pings? Pings.
  • You want console logs? You can't even HANDLE the amount of console logs.

So sit back, relax and enjoy ELEVEN DAYS OF CODING in one big, totally unreviewable PR.


BUT WAIT, THERE'S LESS MORE!

Comes bundled with the free "Library of Despair", a set of commits that acts as a realtime chronicle of one man's journey through recursive function hell. Why not start your journey with the commit where I...


IN SUMMARY

Please enact the following action points on the following packages

  • put better-auth IN THE BIN
  • put kysely in the bin
  • find a bin, place postgres in it
  • if (bin) { bin.push(pg) };

JasonWarrenUK and others added 25 commits March 17, 2025 15:51
- Create detailed task plan for auth implementation
      - Document token, session management, and email procedures
      - Outline step-by-step implementation approach for all endpoints
      - Align implementation plan with frontend requirements
- Replaced custom JWT implementation with better-auth library
- Updated task plan to directly integrate with frontend's library
- Added better-auth dependency to deno.jsonc

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
- Add better-auth dependency
- Create authConfig with magic link plugin
- Create Deno KV user store for auth data
- Implement magic link email sending functionality
  - Create authConfig with magic link plugin
  - Create Deno KV user store for auth data
  - Implement magic link email sending functionality
  - Create unit tests for DenoKvUserStore with in-memory implementation
  - Add tests for magic link email functionality with fetch mocking
  - Implement auth configuration tests with proper environment setup
  - Update test commands with necessary unstable flags and permissions
  - Add auth integration test for end-to-end validation
  - Create placeholder auth handlers in authConfig.ts
  - Update auth routes with proper request/response handling
  - Add validation for required parameters in auth endpoints
  - Return mock user data for development testing
  - Create placeholder auth handlers until better-auth is properly integrated
  - Implement proper request/response handling in auth routes
  - Add validation for email and token parameters
  - Return mock user data for development testing
- Replace placeholder auth object with proper better-auth initialization
- Update auth routes to use better-auth APIs for magic link flow
- Add detailed console logging throughout auth process
- Create test endpoint to verify auth configuration
- Update authMiddleware to work with better-auth session management
- Improve error handling and response formats

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
      - Fix import paths for better compatibility
      - Add detailed debugging to determine auth object structure
      - Implement fallback methods for magic link functionality
      - Make test endpoint report actual auth structure
      - Add better error handling throughout auth routes
      - Complete better-auth integration using the handler approach
      - Add diagnostic logging to debug auth structure
      - Ensure routes properly use the handler for auth operations
      - Provide development fallbacks for easier testing
      - Improve error handling and response formatting
@github-actions
Copy link

github-actions bot commented Apr 1, 2025

🚀 PR Summary

📝 Changes Overview

✨ Authentication! Verification! Frustration!
✅ You want auth? You got auth.
✅ You want pings? Pings.
✅ You want console logs? You can't even HANDLE the amount of console logs.
✅ ...deleted 2.5k lines of code in one go
✅ ...created more console logs in one day than I had in my entire previous dev career

📂 Affected Files

  • 🔵 [M] api/neo4j/find.ts
  • 🔵 [M] api/neo4j/get.ts
  • 🔵 [M] api/neo4j/reset.ts
  • 🔵 [M] api/neo4j/seed.ts
  • 🔵 [M] api/neo4j/writeBeacon.ts
  • 🔵 [M] api/resend/sendMagicLink.ts
  • 🔵 [M] deno.jsonc
  • 🔵 [M] deno.lock
  • 🔵 [M] dev/ENDPOINTS.md
  • 🔵 [M] dev/SCRATCHPAD.md
  • 🔵 [M] dev/TASKS.md
  • 🔵 [M] dev/parse.ts
  • 🔵 [M] main.ts
  • 🔵 [M] routes/authRoutes/authRoutes.ts
  • 🔵 [M] routes/dbRoutes/editRoutes.ts
  • 🔵 [M] routes/dbRoutes/findRoutes.ts
  • 🔵 [M] routes/dbRoutes/getRoutes.ts
  • 🔵 [M] routes/dbRoutes/toolRoutes.ts
  • 🔵 [M] routes/dbRoutes/writeRoutes.ts
  • 🔵 [M] routes/emailRoutes/sendRoutes.ts
  • 🔵 [M] routes/hubRoutes.ts
  • 🔵 [M] tests/auth-test.ts
  • 🔵 [M] tests/auth/sendMagicLink.test.ts
  • 🔵 [M] tests/test.ts
  • 🔵 [M] types/serverTypes.ts
  • 🔵 [M] utils/auth/authLogger.ts
  • 🔵 [M] utils/auth/authMiddleware.ts
  • 🔵 [M] utils/auth/neo4jCred.ts
  • 🔵 [M] utils/auth/neo4jUserLink.ts
  • 🔵 [M] utils/auth/supabase.ts

😄 Code Humor

Why did the programmer quit their job? They didn't get arrays. 👨‍💻


This summary was automatically generated by PR Summarizer

Copy link
Contributor

@AlexVOiceover AlexVOiceover left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, lots of staff here, right?
I am happy to scrap better-auth and use Supabase instead. And it only took 915 new lines :)

@AlexVOiceover AlexVOiceover merged commit 11e6d35 into main Apr 1, 2025
4 checks passed
@AlexVOiceover AlexVOiceover deleted the gentle-buzzard branch April 1, 2025 16:49
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.

3 participants