Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ Run the following commands from your server project directory (e.g., `my_project
```bash
serverpod generate

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The old generate and apply migrations is still there. This goes for all the files. Please revisit this and make it correct all the way through.

serverpod create-migration
dart run bin/main.dart --apply-migrations
serverpod start
```

:::warning
Expand Down Expand Up @@ -244,7 +244,7 @@ On web, Google completes sign-in by redirecting the browser to a callback URL yo

```bash
flutter build web --output ../my_project_server/web/app # from your Flutter project
dart run bin/main.dart # from your server project
serverpod start # from your server project
```

Open `http://localhost:8082/app` to test. `flutter run -d chrome` won't work here because Flutter's dev server runs on a different port from Serverpod — for hot-reload workflows, use the [separately-hosted Flutter web](./customizations#separately-hosted-flutter-web) flow instead.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ Every line of the JSON must be indented by at least one level more than `googleC
```bash
serverpod generate
serverpod create-migration
dart run bin/main.dart --apply-migrations
serverpod start
```

## Lightweight sign-in (One Tap) not appearing
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ Run the following commands from your server project directory (e.g., `my_project
```bash
serverpod generate
serverpod create-migration
dart run bin/main.dart --apply-migrations
serverpod start
```

:::note
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ If you use `--dart-define`, confirm `APPLE_SERVICE_IDENTIFIER` is the Services I
```bash
serverpod generate
serverpod create-migration
dart run bin/main.dart --apply-migrations
serverpod start
```

## Apple rejects the redirect URI with `invalid_request`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ Run the following commands from your server project directory (e.g., `my_project
```bash
serverpod generate
serverpod create-migration
dart run bin/main.dart --apply-migrations
serverpod start
```

:::note
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Go through this before investigating a specific error. Most problems come from a
- [ ] Confirm the `project_id` inside `firebaseServiceAccountKey` matches the Firebase project the client is using.
- [ ] Add `FirebaseIdpConfigFromPasswords()` to `identityProviderBuilders` in `server.dart`.
- [ ] Create a `FirebaseIdpEndpoint` file in `lib/src/auth/` extending `FirebaseIdpBaseEndpoint`.
- [ ] Run **`serverpod generate`**, then **`serverpod create-migration`**, then apply migrations with `dart run bin/main.dart --apply-migrations`.
- [ ] Run **`serverpod generate`**, then **`serverpod create-migration`**, then start the server with `serverpod start`.

#### Client

Expand All @@ -43,7 +43,7 @@ Go through this before investigating a specific error. Most problems come from a
```bash
serverpod generate
serverpod create-migration
dart run bin/main.dart --apply-migrations
serverpod start
```

## Token verification fails with "invalid signature"
Expand Down Expand Up @@ -109,7 +109,7 @@ If you haven't run `flutterfire configure`, do so to generate the `firebase_opti

1. **Missing service account key:** The `firebaseServiceAccountKey` is not present in `passwords.yaml`, or the JSON is invalid.
2. **Missing endpoint:** You did not create the endpoint class extending `FirebaseIdpBaseEndpoint`. Without it, the client has no endpoint to call.
3. **Missing migration:** The provider's database tables don't exist yet. Apply migrations with `dart run bin/main.dart --apply-migrations`.
3. **Missing migration:** The provider's database tables don't exist yet. Start the server with `serverpod start`.
4. **Project mismatch:** The service account key belongs to a different Firebase project than the one configured in your Flutter app. Compare `project_id` in `firebaseServiceAccountKey` against the project in `firebase_options.dart`.
5. **App Check enabled prematurely:** If you enabled Firebase App Check before the client integration is in place, every request will be rejected with an App Check assertion error. Disable App Check until the client is wired up.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ Run the following commands from your server project directory (e.g., `my_project
```bash
serverpod generate
serverpod create-migration
dart run bin/main.dart --apply-migrations
serverpod start
```

:::warning
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ See [Configuring client IDs on the app](./customizations#configuring-client-ids-

**Cause:** The keys are missing from `config/passwords.yaml`, are spelled differently, or are not present under the active environment section.

**Resolution:** Confirm both keys exist under the section matching your run mode (`development:` for `dart run bin/main.dart`, `production:` when deployed):
**Resolution:** Confirm both keys exist under the section matching your run mode (`development:` when running locally with `serverpod start`, `production:` when deployed):

```yaml
development:
Expand All @@ -182,7 +182,7 @@ Quotes are required because the values are strings; YAML interprets unquoted val
```bash
serverpod generate
serverpod create-migration
dart run bin/main.dart --apply-migrations
serverpod start
```

## Android sign-in opens GitHub but the callback never fires
Expand Down
Loading