mastodon_mock

@if (server.isMock) { }
@if (tab() === 'signin') {
Instance
@for (preset of serverPresets; track preset.baseUrl) { }

Talking to {{ server.baseUrl() || 'this server' }}

@if (!showRegister()) {

Paste an access token to sign in.

@if (error()) {

{{ error() }}

}

No account?

} @else { @if (pendingToken()) {

Almost there! We sent a confirmation email to {{ regEmail() }}. Click the link to verify your address.

(This mock doesn't really send mail — clicking just exercises /api/v1/emails/confirmations and signs you in.)

} @else {

Create an account on {{ server.baseUrl() || 'this server' }}.

@if (regError()) {

{{ regError() }}

}

Have a token?

} }
Full OAuth flow
@if (showOAuth()) {

Registers an app, then redirects through {{ server.baseUrl() || 'this server' }}/oauth/authorize and exchanges the code at /oauth/token. On a real instance you'll see its actual login/consent page.

@if (oauthError()) {

{{ oauthError() }}

} }
} @if (tab() === 'mock' && server.isMock) {

One-click sign-in as any local account — Twitter-style. Switch between them anytime from the avatar menu in the header.

@if (error()) {

{{ error() }}

} @if (devUsers().length) { } @else {

No accounts yet — generate one above or seed sample data.

} } @if (tab() === 'init' && server.isMock) {

Bulk-generate a throwaway cohort of accounts, statuses and relationships.

@if (seedMessage()) {

{{ seedMessage() }}

}

After seeding, head to to sign in as one of the new accounts.

}