Add ATProto login to your Application* in minutes
npm install @onelyid/expressimport { 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!
- 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.