#'Invalide provider' with REST login

3 messages · Page 1 of 1 (latest)

nova rampart
#

Hi, I get this error when I hit http://localhost:8055/auth/login with some credentials. The credentials are correct and in my .env file I put:
AUTH_PROVIDERS="local"
AUTH_LOCAL_DRIVER="local"

I really don't get why I have this error. Some help would be very appreciated 😄

timber island
#

The local provider is default, not sure if these env variables are needed.

  • Also check the user in directus admin, see what provider is set

  • You could try to login with /auth/login/local, but again.. local is default so should not be needed.

inland siren
#

The default driver is a local type, but it's called "default". So as deling said, you must either use the "/local" URL or make sure your user has the "Default" auth provider