Skip to content

Commit 3eff975

Browse files
Sel readme examples (#23)
* Fix weird package.json/package-lock.json inconsistencies * Added barebones login/logout example * tweaks to barebones login/logout example * Updated __examples__ README to point to login-logout * updated README for login-logout * Initial commit for using login info to pull info from bluesky PDS * Put together almost-simplest example * README edits * Updates to read-write-records to improve formatting, add deletion of statuses * fix build * polish up authproto examples * Improve authproto redirect example * Clarify authproto readme * add numbers in front of examples --------- Co-authored-by: Essential Randomness <essentialrandomn3ss@gmail.com>
1 parent 3aa4042 commit 3eff975

66 files changed

Lines changed: 18398 additions & 16214 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# build output
2+
dist/
3+
# generated types
4+
.astro/
5+
6+
# dependencies
7+
node_modules/
8+
9+
# logs
10+
npm-debug.log*
11+
yarn-debug.log*
12+
yarn-error.log*
13+
pnpm-debug.log*
14+
15+
16+
# environment variables
17+
.env
18+
.env.production
19+
20+
# macOS-specific files
21+
.DS_Store
22+
23+
# jetbrains setting folder
24+
.idea/
25+
26+
# session data
27+
tmp/
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
Very simple implementation of @fujocoded/authproto that shows off login/logout
2+
functionality.
3+
4+
> TODO: we should call out people need the --host in their command or `host:
5+
true` in their config. This is likely to get people very confused, cause
6+
> they'll miss it in `package.json` then wonder why their thing isn't working.
7+
> I'd say we move it to `astro.config.mjs` and call out there that it's
8+
> necessary for the login redirect to work (ATproto's rules, not mine)
9+
10+
> LATER ADDITION: Just discovered I had put a warning for this 👇! Still, we
11+
> should call it out explicitly somewhere, and maybe message this better.
12+
> Complication: It's `astro dev --host` if written in `package.json`;
13+
> `npm run dev -- --host` if added when running from command line;
14+
> `{server: { host: true } }` when set in `astro.config.mjs`.
15+
> I don't know how to avoid confusing people with options, but if we had
16+
> it as a README section it could link to a longer explanation.
17+
>
18+
> 17:02:04 [ERROR] [fujocoded:authproto] ATproto requires
19+
> the local redirect URL to be 127.0.0.1 (not localhost) but your site is not
20+
> running on a network address. Run `astro dev --host` to fix this.
21+
22+
Nothing super special, see [existing @fujocoded/authproto
23+
README](../../README.md).
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
// @ts-check
2+
import { defineConfig } from "astro/config";
3+
import authProto from "@fujocoded/authproto";
4+
import node from "@astrojs/node";
5+
6+
// https://astro.build/config
7+
export default defineConfig({
8+
output: "server",
9+
adapter: node({
10+
mode: "standalone",
11+
}),
12+
integrations: [
13+
authProto({
14+
applicationName: "Login Logout",
15+
applicationDomain: "localhost:4321",
16+
driver: {
17+
name: "fs",
18+
options: {
19+
base: "./tmp",
20+
},
21+
},
22+
}),
23+
],
24+
});

0 commit comments

Comments
 (0)