We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent deedafa commit 72571feCopy full SHA for 72571fe
README.md
@@ -49,11 +49,13 @@ The last thing you'll need is to provide your own implementation of `UserFactory
49
```
50
final class NativeSessionUserFactory implements UserFactory
51
{
52
- public function make(array $payload): ?Authenticatable
+ public function make(array $session): ?Authenticatable
53
54
+ // $session here is the same as $_SESSION
55
+
56
return new MyUserObject(
- $payload['username'],
- $payload['custom:my_custom_cognito_attribute'],
57
+ $session['id'],
58
+ $session['my_user_attribute'],
59
);
60
}
61
0 commit comments