Skip to content

Commit bbf388a

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 4f9e608 commit bbf388a

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

docs/src/web-component.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ auth.addEventListener('logout', () => {
145145
### Header Mode (`show-profile=false`)
146146

147147
Default mode. Shows:
148+
148149
- **Logged out**: "Log in" button → redirects to login.hotosm.org
149150
- **Logged in**: Avatar dropdown with:
150151
- Profile link
@@ -163,6 +164,7 @@ Default mode. Shows:
163164
### Profile Mode (`show-profile=true`)
164165

165166
Shows full Hanko auth form (for login page):
167+
166168
- **Logged out**: Hanko passkey/email form
167169
- **Logged in**: Profile card + OSM status + logout button
168170

@@ -182,6 +184,7 @@ Shows full Hanko auth form (for login page):
182184
## Hanko URL Detection
183185

184186
Priority order:
187+
185188
1. `hanko-url` attribute
186189
2. `<meta name="hanko-url" content="...">` tag
187190
3. `window.HANKO_URL` global
@@ -274,6 +277,7 @@ document.addEventListener('visibilitychange', () => {
274277
## Debug Mode
275278

276279
Enable with:
280+
277281
- URL param: `?debug=true`
278282
- LocalStorage: `localStorage.setItem('hanko-auth-debug', 'true')`
279283

0 commit comments

Comments
 (0)