79126507

Date: 2024-10-25 16:20:31
Score: 0.5
Natty:
Report link

Not exactly thing you're asking for, but I have found using the argon2 and password-hash crates directly in a /login endpoint, minting a JWT, putting that in request headers and requiring/extracting a valid one via a axum::extract::FromRequestParts in other endpoints that need auth to be less hassle than stateful session management.

How do I turn plaintext passwords into argon2 hashes which will "just work" with axum_login?

Reasons:
  • Blacklisted phrase (1): How do I
  • Has code block (-0.5):
  • Ends in question mark (2):
  • High reputation (-2):
Posted by: the8472