Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@proto OAUTH minimum working server side example

Confused by the docs for @atproto/oauth-client-node? This is a minimum working example of a server that uses the library.

Quickstart:

  • Host your server on a public https URL. I used a Cloudflared tunnel, but you can use ngrok or something similar.
  • add your public https server's DOMAIN to .env
  • generate at least one keypair with tsx generate.ts
  • Put each JSON string for the keypair in the .env file under PRIVATE_KEY_1, PRIVATE_KEY_2, etc. (can do this with npm run --silent keys >> .env in a POSIX shell)
  • npm start

About

No description, website, or topics provided.

Resources

Stars

6 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages