├── .gitignore ├── .vscode ├── extensions.json └── launch.json ├── README.md ├── astro.config.mjs ├── package.json ├── pnpm-lock.yaml ├── public └── favicon.svg ├── src ├── api.ts ├── client │ └── auth.ts ├── db.ts ├── env.d.ts ├── middleware.ts └── pages │ ├── api │ ├── challenge.ts │ ├── login.ts │ ├── logout.ts │ └── signup.ts │ ├── index.astro │ ├── login.astro │ └── signup.astro └── tsconfig.json /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pilcrowonpaper/astro-passkey/HEAD/.gitignore -------------------------------------------------------------------------------- /.vscode/extensions.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pilcrowonpaper/astro-passkey/HEAD/.vscode/extensions.json -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pilcrowonpaper/astro-passkey/HEAD/.vscode/launch.json -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Passkey auth with Astro and Oslo 2 | 3 | Uses `Map`s to store data. -------------------------------------------------------------------------------- /astro.config.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pilcrowonpaper/astro-passkey/HEAD/astro.config.mjs -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pilcrowonpaper/astro-passkey/HEAD/package.json -------------------------------------------------------------------------------- /pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pilcrowonpaper/astro-passkey/HEAD/pnpm-lock.yaml -------------------------------------------------------------------------------- /public/favicon.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pilcrowonpaper/astro-passkey/HEAD/public/favicon.svg -------------------------------------------------------------------------------- /src/api.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pilcrowonpaper/astro-passkey/HEAD/src/api.ts -------------------------------------------------------------------------------- /src/client/auth.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pilcrowonpaper/astro-passkey/HEAD/src/client/auth.ts -------------------------------------------------------------------------------- /src/db.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pilcrowonpaper/astro-passkey/HEAD/src/db.ts -------------------------------------------------------------------------------- /src/env.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pilcrowonpaper/astro-passkey/HEAD/src/env.d.ts -------------------------------------------------------------------------------- /src/middleware.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pilcrowonpaper/astro-passkey/HEAD/src/middleware.ts -------------------------------------------------------------------------------- /src/pages/api/challenge.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pilcrowonpaper/astro-passkey/HEAD/src/pages/api/challenge.ts -------------------------------------------------------------------------------- /src/pages/api/login.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pilcrowonpaper/astro-passkey/HEAD/src/pages/api/login.ts -------------------------------------------------------------------------------- /src/pages/api/logout.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pilcrowonpaper/astro-passkey/HEAD/src/pages/api/logout.ts -------------------------------------------------------------------------------- /src/pages/api/signup.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pilcrowonpaper/astro-passkey/HEAD/src/pages/api/signup.ts -------------------------------------------------------------------------------- /src/pages/index.astro: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pilcrowonpaper/astro-passkey/HEAD/src/pages/index.astro -------------------------------------------------------------------------------- /src/pages/login.astro: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pilcrowonpaper/astro-passkey/HEAD/src/pages/login.astro -------------------------------------------------------------------------------- /src/pages/signup.astro: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pilcrowonpaper/astro-passkey/HEAD/src/pages/signup.astro -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "astro/tsconfigs/strict" 3 | } --------------------------------------------------------------------------------