ArranJacques / laravel-aws-cognito-auth

An authentication driver for Laravel for authenticating users in AWS Cognito User Pools.
Other
74 stars 26 forks source link

SQLSTATE[42S02]: Base table or view not found #9

Closed muresanandrei closed 6 years ago

muresanandrei commented 6 years ago

When I try Auth::attempt() I get Base table or view not found error. I configured aws, aws-cognito-auth and also auth how it says on description but I still get this.

zoul0813 commented 6 years ago

Do you have a DB setup with the User table, and a proper model class?

muresanandrei commented 6 years ago

I thought I didn't need a user table since I use cognito. Sorry I am new to everything that includes aws.So I am not sure why I need a users table when users are on aws not my db.

zoul0813 commented 6 years ago

This package just overrides the built in Laravel user with, letting cognito authorize. But the User model passed around still comes from your database.

ArranJacques commented 6 years ago

@zoul0813 thanks for the help.

I've added some additional documentation to the readme to help clarify this point.

https://github.com/pallant/laravel-aws-cognito-auth/tree/v1.1.2#users-table