mastodon_mock

Server
@for (preset of serverPresets; track preset.baseUrl) { }

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

Paste an access token to sign in.

@if (error()) {

{{ error() }}

} @if (server.isMock) {
Dev login
@if (seedMessage()) {

{{ seedMessage() }}

} @if (devUsers().length) {
    @for (u of devUsers(); track u.id) {
  • }
} @else {

No accounts with tokens yet — generate one above.

}
}
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() }}

} }