@onelyid/express
v0.2.14
Published
ATProto Auth client for Express.js
Maintainers
Readme
onelyid
Add ATProto login to your Application* in minutes
Install package
npm install @onelyid/expressUsage in Application
import { authMiddleware } from '@onelyid/express'
// const app = express()
app.use(authMiddleware())
app.get('/login', (req, _res) => {
req.authFlow()
})That's it!
You can now navigate to /login endpoint in your application to see the login process in action.
Note that unlike other Auth solutions, you don't need to register your application anywhere, as AT Protocol is designed to be permissionless.
Full docs coming soon!
Notes*
- Currently, only Express.js applications are supported.
- Support for other frameworks like Next.js is coming soon!
- Native Apps are not supported for now, but planned for future.
