GitHub

Atproto Login

llms.txt

Example

Usage

Add modal to your +layout.svelte

		
<AtprotoLoginModal
	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={() => atProtoLoginModalState.show()}>Login</Button>

API Reference

AtprotoLoginModal

A modal dialog for AT Protocol (Bluesky) login with handle autocomplete. Export atProtoLoginModalState to control the modal.

Property
login
signup
formAction
formMethod
loginOnSelect