Account security
On this page
Add a second factor to your Dokwe account, review where you're signed in, and create API keys for automation. You'll find all of this under Settings in the dashboard.
Two-factor authentication#
With 2FA on, signing in with your password takes one more step: a code from your authenticator app, a recovery code, or a passkey. You have five minutes to finish that step after entering your password.
Set up an authenticator app#
Start setup#
Go to Settings → Security and choose to enable two-factor authentication.
Scan the QR code#
Scan the code with an authenticator app such as Google Authenticator or 1Password. If you can't scan, use Copy Secret and paste the key into the app.
Save your recovery codes#
Dokwe shows eight recovery codes. Copy them and store them somewhere safe, away from your phone. You won't see them again.
Confirm with a code#
Enter the current six-digit code from your app. 2FA turns on only after this code checks out.
Save your recovery codes before you confirm. If you lose your phone and your codes, you can't complete the 2FA step.
Recovery codes#
Each recovery code looks like ABCDE-12345 and works once. Type one in place of an authenticator code when you sign in. You can also use one to turn 2FA off.
When you turn 2FA off, your authenticator secret and any unused recovery codes are deleted. Setting it up again gives you a new QR code and eight new recovery codes.
Too many wrong codes#
After five wrong codes, Dokwe blocks further attempts for up to ten minutes. Wait, then try again.
Turn off the authenticator app#
In Settings → Security, choose to disable two-factor authentication and enter a current code or a recovery code.
Passkeys#
A passkey uses your device's fingerprint, face or PIN, or a security key, as your second factor. You still enter your password first, then confirm with the passkey.
Add a passkey#
In Settings → Security, enter an optional label such as "MacBook Touch ID" and click Add passkey.
Confirm on your device#
Follow your browser's prompt to create the passkey.
Your passkeys are listed with their label and whether they're Synced across devices or Device-bound. Remove one at any time.
If you have both an authenticator app and a passkey, you can use either at sign-in. A passkey alone also counts as 2FA for workspaces that require it. See Team roles.
Dokwe also asks for a fresh code or passkey before some sensitive actions, such as leaving a workspace or joining one through a link.
Sessions#
Go to Settings → Sessions to see everywhere you're signed in. Each session shows its source (web, CLI, magic link or API), the device, the IP address, and when it was last active.
| Session source | Lasts |
|---|---|
| Web | 24 hours |
| Magic link | 24 hours |
| CLI | 30 days |
| API key | 30 days |
- Revoke a session to sign out that device.
- Sign out everywhere else to end every other session. The session you're using stays signed in.
Lost a laptop? Use Sign out everywhere else from another device, then change your password.
Sign in with a magic link#
On the sign-in page, click Email me a sign-in link and enter your email. Then click the link in that email.
- The link expires after 15 minutes.
- The link works once.
- Requesting a new link cancels any earlier unused one.
- You can request up to three links per email address in 15 minutes.
- If you've turned on two-factor authentication, you still confirm with your authenticator code, passkey or a recovery code after clicking the link.
For privacy, Dokwe shows the same message whether or not an account exists for that email.
Reset your password#
Go to Forgot password on the sign-in page and enter your email. The reset link expires after one hour. If the link has expired, request a new one.
To change a password you already know, use Settings → Account.
API keys#
API keys let the CLI and scripts sign in without your password. Manage them in Settings → API Keys.
Create a key#
Click to create a key and give it a name. Each name must be unique among your keys.
Choose a scope#
Pick Account-wide for access to every project in the workspace, or choose a single project. A project-scoped key can only act on that project.
Choose an expiry#
Pick 30 days, 90 days, 1 year or Never.
Copy the key#
The key starts with
dk_pak_. Dokwe shows the full key only once, so copy it now. Afterwards you'll see only its prefix.
Use the key with the CLI:
dokwe login --api-key dk_pak_your_key_hereYou can have up to 20 active keys. To manage them:
- Regenerate a key to get a new secret. The old secret stops working right away. The name, scope and expiry stay the same.
- Revoke a key to disable it for good.
Treat an API key like a password. Don't commit it to git. Store it as a secret in your CI system instead.
See CLI for more on signing in from the terminal.