Skip to content

Latest commit

 

History

History

README.md

@fujocoded/authproto examples

In this folder, you'll find examples that will help you understand how to use @fujocoded/authproto to achieve all your dreams.

Base Examples

  1. the simplest example: login-logout =>
    • Just shows you how to log in/out
  2. the almost-simplest example: read-bsky-profile =>
    • Logged out: Show FujoCoded's Bluesky profile
    • Logged in: Show the logged-in user Bluesky profile
    • Jokey stretch: get someone to sponsor a paid ad for another service
  3. Stepping it up: read-write-records =>
    • reads and writes records from a PDS
    • Add bits scopes here

Extras

  1. Extra: auth-only-pages =>
    • restrict pages to logged-in users
    • restrict pages to e.g. mutuals
  2. Redirect configuration

// FUTURE // Astro DB?