Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,9 @@ dependencies:
serverpod_auth_idp_client: 3.x.x
```

## App setup
## Flutter setup

First, add dependencies to your app's `pubspec.yaml` file for the methods of signing in that you want to support.
First, add dependencies to your flutter app's `pubspec.yaml` file for the methods of signing in that you want to support.

```yaml
dependencies:
Expand Down Expand Up @@ -238,7 +238,7 @@ In case you have an endpoint called `AuthEndpoint` - that will generate the `aut

### Initialize authentication

The `initialize()` method restores any existing session from storage and validates it with the server. It should be called when your app starts:
The `initialize()` method restores any existing session from storage and validates it with the server. It should be called when your flutter app starts:

```dart
await client.auth.initialize();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ All authenticated users have an authentication identifier, that uniquely identif

```dart
var userIdString = session.authenticated?.userIdentifier;
// requires `import 'package:serverpod_auth_idp_server/serverpod_auth_idp_server.dart';`
// requires `import 'package:serverpod_auth_idp_server/core.dart';`
var userIdUuidValue = session.authenticated?.authUserId;
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ For more details on configuration options, such as customizing password requirem
If you are using the `config/passwords.yaml` file or environment variables, you can use the `EmailIdpConfigFromPasswords` constructor to automatically load the secret pepper. It will expect the `emailSecretHashPepper` key or the `SERVERPOD_PASSWORD_emailSecretHashPepper` environment variable to be set with the secret pepper value.
:::

## Client-side configuration
## Flutter-side configuration

If you have configured the `SignInWidget` as described in the [setup section](../../setup#present-the-authentication-ui), the Email identity provider will be automatically detected and displayed in the sign-in widget.

Expand Down
Loading