Skip to content

Docs inaccurate for overriding user auth with AuthMethods.Password #336

@buoyad

Description

@buoyad

The user authentication doc uses the wrong signature for overriding authentication with AuthMethods.Password. The correct signature is the one here:

// Email and password
af.auth.login(
{
  email: '[email protected]',
  password: 'password'
},
{
  provider: AuthProviders.Password,
  method: AuthMethods.Password,
})

The docs use this:

// Email and password
af.auth.login({
  provider: AuthProviders.Password,
  method: AuthMethods.Password,
})

which throws Error: Uncaught (in promise): You must include credentials to use this auth method.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions