Skip to content

lastlogin for dev mode - #775

Open
tarasglek wants to merge 13 commits into
mainfrom
taras/lastlogin
Open

lastlogin for dev mode#775
tarasglek wants to merge 13 commits into
mainfrom
taras/lastlogin

Conversation

@tarasglek

@tarasglek tarasglek commented Jan 9, 2025

Copy link
Copy Markdown
Owner

This is a lot more minimal than our auth in terms of effort. I'm 99% sure that lastlogin lib is just generic oauth that needs to be generalized a little, so it can support google/github directly

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jan 9, 2025

Copy link
Copy Markdown

Deploying chatcraft-org with  Cloudflare Pages  Cloudflare Pages

Latest commit: c18edb9
Status: ✅  Deploy successful!
Preview URL: https://8cf01ecc.console-overthinker-dev.pages.dev
Branch Preview URL: https://taras-lastlogin.console-overthinker-dev.pages.dev

View logs

@tarasglek

tarasglek commented Jan 9, 2025

Copy link
Copy Markdown
Owner Author

@humphd it's neither here nor there. https://jsr.io/@pomdtr/lastlogin solves as many problems as it introduces, but I think it would be a great student project to make it into a generic oauth lib for us. Most of the code is hacks to deal with integrating this lib into our existing codebase. Overall quality of our auth code is heavy on copy-pasta, a little terrifying tho I found no bugs yet

However overall safety and ergonomics of this style of fetch wrapper are kind of amazing compared to alternatives

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