Skip to content

kaytwo/atproto-oauth-client-server-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Watchers

Forks

Releases

No releases published

Packages

No packages published