GitHub

Atproto Login

llms.txt

Example

Modal version

Inline version

Login with your internet handle

like your bluesky account
Don't have an account?

Usage

Add modal to your +layout.svelte

		
<script>
	let open = $state(false);
</script>

<AtprotoLoginModal
	bind:open
	login={async (handle) => {
		// do login and return true if login
		// is successful and should hide the modal
	}}
	signup={async () => {
		// do signup and return true if signup
		// is successful and should hide the modal
	}}
/>

Open the modal

		
<Button onclick={() => (open = true)}>Login</Button>

Inline (non-modal) version

Use AtprotoLogin to embed the login form directly in a page:

		
<AtprotoLogin
	login={async (handle) => {
		// do login
	}}
/>

API Reference

AtprotoLoginModal

A modal dialog for AT Protocol (Bluesky) login with handle autocomplete.

Property
open
login
signup
formAction
formMethod
loginOnSelect

AtprotoLogin

An inline AT Protocol (Bluesky) login form with handle autocomplete. Use this to embed login directly in a page.

Property
login
signup
formAction
formMethod
loginOnSelect
class