Signing in
Fjord connects to a forge in one of two ways. You pick one when you sign in, and the app stores the host and credential securely on device.
Fjord Account
A Fjord Account is the sign-in for the hosted platform, and the recommended path for instances hosted on Fjord.
Choosing it opens the Fjord sign-in page in a secure in-app browser, where you authenticate to the Fjord platform with your email and password. Two-factor authentication is optional: you are prompted for a TOTP code only if you have enabled 2FA on your account. Fjord completes a standard OIDC authorization-code sign-in with PKCE and captures the result back in the app, without you leaving it. PKCE makes the app a public client with no shipped secret, so only the device that started the sign-in can complete it.
A Fjord Account authenticates against the Fjord platform’s own identity, not the Forgejo instance directly: it is the platform credential that grants access to the instance Fjord provisions for you.
The account does not have to be a paying one. A free Fjord Account signs in to Fjord Commons, the shared instance, so you can use the app against a real Forgejo without provisioning anything.
Terms and Privacy
When you sign in with a Fjord Account you agree to the Terms of Service and Privacy Policy on the sign-in screen. When you connect straight to your own server, the first time you choose Use your own server the app first shows “By continuing you agree to the Terms of Service and Privacy Policy”, with both documents linked, and a Continue button. Continue to go on to the server address and token. On iPhone and iPad, Cancel leaves instead. The app asks once for each version of the Terms, not on every sign-in.
Notice of Terms changes
When the Terms of Service are about to change, the app shows a notice in the app before the new Terms take effect. The notice shows the title and summary published at fjord.sh/legal/updates, cut to a few lines. It has these actions:
- Read the change opens the full update.
- Show full text shows the whole notice in the app (iPhone and iPad only).
- Dismiss hides the notice. It will not be shown again.
The notice depends on the app being able to read that feed, so if the app cannot reach fjord.sh it may show none or, on Android, a cached notice. The updates page always lists every change. A notice appears once its notice date has passed and for 90 days after, and only for links on fjord.sh. On iPhone and iPad it stays hidden while the app is locked or not in the foreground. The app remembers on the device which notices you dismissed. On Android it shows the newest notice posted within the last 90 days.
To find a notice, the app makes a plain GET request to https://fjord.sh/legal/updates.json. On iPhone and iPad, it does this the first
time it is active after launch. Android saves the last successful feed read and
its timestamp across restarts. If relaunched within an hour, it uses the cached
feed without making a request. If a request fails, the app tries again later, but
not more than a few times an hour. After a successful read it refreshes at most
once an hour. The request sends only Accept: application/json, User-Agent: Fjord and Accept-Language: en, plus the headers the operating system adds. It sends no
cookies, account, device or analytics identifier, and it does not depend on your
analytics setting.
Personal access token
Instances you provision on the Fjord platform sign in with your Fjord Account. Connecting directly is free and needs no Fjord Account and no plan; a Fjord Account is optional there too, adding push notifications and switching between your Fjord instances and connected forges. This applies to the iPhone and iPad app and to the Android app.
Sign in with its hostname and a personal access token to point Fjord at any Forgejo 7.0 or later instance, or a Gitea server, at its root address
over HTTPS (plain http only for a server on your local network), the same as
the fj CLI. Create a token in
Forgejo or Gitea under your profile, Settings, Applications, and give it the
scopes Fjord uses. The token stays on the device. You can add several servers
and accounts this way and switch between them, free and with no limit.
Actions needs Forgejo 15+, and viewing run logs, cancelling a run, and
downloading artifacts need Forgejo 16+.
Token scopes
Fjord’s current features need these scopes:
| Scope | Used for |
|---|---|
read:user, write:user | Your profile, starring, watching, following |
read:repository, write:repository | Browsing repos and code, and repo-level actions |
read:issue, write:issue | Issues and pull requests, comments, reactions, labels, merging |
read:notification, write:notification | The inbox, and marking notifications read |
A read-only token signs in fine but cannot perform Fjord’s write actions
(commenting, reactions, labels, pinning, merging pull requests, requesting
reviews, starring, watching, following, and marking notifications read). Grant
the write: scopes above if you want those.
Where credentials live
Fjord stores the host and your credential in the device Keychain, never in plain files. Each server you add keeps its own credential. Signing out clears the stored credential.
If a session expires, Fjord asks you to sign in again rather than rotating a refresh token in the background.
- Stephen Way