Account Registration and Login
This page explains how to register an account, log in, and log out on the todoke dashboard.
Registering with an email address
Section titled “Registering with an email address”- Open the dashboard registration screen (
/register). - Enter your email address.
- Enter a password (at least 6 characters). The form will not submit a password shorter than 6 characters.
- Click “アカウントを作成” (Create account). While submitting, “登録中…” (Registering…) is displayed.
Below the registration form, the following note is shown: “登録することで、利用規約 および プライバシーポリシー に同意したものとみなされます。” (By registering, you are deemed to have agreed to the Terms of Service and Privacy Policy.)
If you already have an account, you can move to the login screen (/login) via the “ログイン” (Login) link at the bottom of the registration screen.
Logging in with GitHub
Section titled “Logging in with GitHub”The login screen (/login) provides a “GitHub でログイン” (Log in with GitHub) button in addition to the email/password form.
- On the login screen, click “GitHub でログイン” (Log in with GitHub).
- You are redirected from the dashboard to
GET https://api.todoke.dev/auth/github. - GitHub’s authorization screen is displayed; grant access to todoke.
- You are returned from GitHub to the callback (
/auth/github/callback), and once authentication completes you are automatically taken to the dashboard’s app list screen (/) in a logged-in state.
Logging out
Section titled “Logging out”Clicking the “ログアウト” (Log out) button in the top right of the header on the post-login app list screen (/) destroys the session and returns you to the login screen (/login).
Display on authentication errors
Section titled “Display on authentication errors”If login or registration fails, an error message is displayed in red below the form (it is also announced to assistive technologies as role="alert").
| Operation | Message displayed | Corresponding error code |
|---|---|---|
| Login failure (email/password mismatch) | “メールアドレスまたはパスワードが正しくありません” (The email address or password is incorrect) | INVALID_CREDENTIALS |
| Registration failure (duplicate email) | “このメールアドレスは既に使用されています” (This email address is already in use) | EMAIL_IN_USE |
For the full list of error codes, see Error codes and limits.