Open minkbear opened 2 months ago
Describe the bug using API guard, user property is always null.
To Reproduce Steps to reproduce the behavior:
I take a look closer on https://github.com/ellaisys/aws-cognito/blob/master/src/Guards/CognitoTokenGuard.php#L373 so I set primaryKey = "sub" in user models. The problem is gone. and no docs here.
primaryKey = "sub"
Expected behavior able to get user models when using API guard
Describe the bug using API guard, user property is always null.
To Reproduce Steps to reproduce the behavior:
I take a look closer on https://github.com/ellaisys/aws-cognito/blob/master/src/Guards/CognitoTokenGuard.php#L373 so I set
primaryKey = "sub"
in user models. The problem is gone. and no docs here.Expected behavior able to get user models when using API guard