Skip to content

baadal/onelyid

Repository files navigation

onelyid

Add ATProto login to your Application* in minutes

Install package

npm install @onelyid/express

Usage 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.

About

Add ATProto login to your App in minutes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors