{{ define "title" }} login {{ end }} {{ define "content" }} {{ if .AddAccount }}
{{ i "user-plus" "w-4 h-4" }}
Add another account

Sign in with a different account to add it to your account list.

{{ end }} {{ if and .LoggedInUser .LoggedInUser.Accounts }} {{ $accounts := .LoggedInUser.Accounts }} {{ if $accounts }}
Saved accounts
{{ range $accounts }}
{{ end }}
{{ end }} {{ end }}
Use your AT Protocol handle to log in. If you're unsure, this is likely your Tangled (.tngl.sh) or Bluesky (.bsky.social) account.
{{ if .ErrorCode }}
{{ i "circle-alert" "w-4 h-4" }}
Login error

{{ if eq .ErrorCode "access_denied" }} You have not authorized the app. {{ else if eq .ErrorCode "session" }} Server failed to create user session. {{ else if eq .ErrorCode "max_accounts" }} You have reached the maximum of 20 linked accounts. Please remove an account before adding a new one. {{ else }} Internal Server error. {{ end }} Please try again.

{{ end }}

Don't have an account? Create an account on Tangled now!

{{ end }}