Skip to content

Commit

Permalink
Update readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
deleugpn committed Oct 14, 2020
1 parent 5e90a3b commit 5b82ddb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ Configure the `auth` middleware at `App\Http\Kernel` with `'auth:cognito-token'`

The last thing you'll need is to provide your own implementation of `UserFactory` and register it in a ServiceProvider.

```
final class CognitoUserFactory implements UserFactory
{
public function make(array $payload): ?Authenticatable
Expand All @@ -86,7 +87,9 @@ final class CognitoUserFactory implements UserFactory
);
}
}
```

In the provider:
```
$this->app->bind(CustomerGauge\Cognito\Contracts\UserFactory, App\Auth\CognitoUserFactory::class);
```

0 comments on commit 5b82ddb

Please sign in to comment.