Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

lastlogin for dev mode #775

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Open

lastlogin for dev mode #775

wants to merge 13 commits into from

Conversation

tarasglek
Copy link
Owner

@tarasglek tarasglek commented Jan 9, 2025

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

Copy link

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

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
Copy link
Owner Author

tarasglek commented Jan 9, 2025

@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