I published oauth2-passkey-axum - Passwordless auth for Axum with Google OAuth2 & Passkeys

Hey Rustaceans! :waving_hand:

I just published oauth2-passkey-axum - a library that adds modern authentication to Axum apps. Users authenticate with OAuth2 or Passkey, then receive a secure session cookie to maintain their login status.

Features

  • :globe_with_meridians: "Sign in with Google" OAuth2/OIDC authentication that just works
  • :key: Passwordless login WebAuthn/Passkey support for modern devices
  • :link: Account linking Users can add multiple login methods to one account
  • :shield: Security built-in Sessions, CSRF protection, secure cookies
  • :package: Minimal setup Works with SQLite out of the box, scales to PostgreSQL + Redis

Looking for feedback on:

  1. API design - Is the middleware/extractor pattern intuitive?
  2. Security - Any concerns or improvements?
  3. Feature requests - Other OAuth2 providers? Additional features?

Links:

This is my first published crate and I'm still learning, so any feedback is greatly appreciated!

1 Like

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.