Describe the bug
When using version V1.2.5 everything worked perfectly. After running composer update and switching to version V1.3.0 I get the NoLocalUserException from 'src/Guards/Traits/BaseCognitoGuard.php:244' while the user does exist in AWS Cognito and the local user table.
To Reproduce
Steps to reproduce the behaviour:
Follow the readme to install the package
Create the login controller according to the screenshot included.
Register and activate a user in AWS Cognito and the local database.
Call the API
See the error
Expected behaviour
Get the user to be logged in.
Screenshots
Desktop (please complete the following information):
OS: Ubuntu 24.04
Browser: Chrome 126.0.6478.55 and Firefox 129.0.2
Smartphone (please complete the following information):
Device: [e.g. iPhone6]
OS: [e.g. iOS8.1]
Browser [e.g. stock browser, safari]
Version [e.g. 22]
Additional context
'src/Guards/Traits/BaseCognitoGuard.php:223': The '$credentials' param contains a collection of a 'sub' key with a token as a value. The line '$this->getRemoteUserData($this->claim->getUsername());' (R231) returns an error that the user doesn't exist.
Describe the bug When using version V1.2.5 everything worked perfectly. After running composer update and switching to version V1.3.0 I get the NoLocalUserException from 'src/Guards/Traits/BaseCognitoGuard.php:244' while the user does exist in AWS Cognito and the local user table.
To Reproduce Steps to reproduce the behaviour:
Expected behaviour Get the user to be logged in.
Screenshots
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context 'src/Guards/Traits/BaseCognitoGuard.php:223': The '$credentials' param contains a collection of a 'sub' key with a token as a value. The line '$this->getRemoteUserData($this->claim->getUsername());' (R231) returns an error that the user doesn't exist.