Files
tranquil-pds/frontend/src/components/RandomHandle.svelte
Lewis 34f050a1f0 feat(oauth): discoverable passkey authentication
Lewis: May this revision serve well! <lu5a@proton.me>
2026-04-12 11:16:58 +00:00

22 lines
447 B
Svelte

<script lang="ts" module>
const EXAMPLE_HANDLES = [
"nel.pet",
"oyster.cafe",
"llaama.bsky.social",
"debugman.wizardry.systems",
"nonbinary.computer",
"mary.my.id",
"olaren.dev",
] as const;
export function getRandomHandle(): string {
return EXAMPLE_HANDLES[Math.floor(Math.random() * EXAMPLE_HANDLES.length)];
}
</script>
<script lang="ts">
let handle = $state(getRandomHandle());
</script>
@{handle}