1

Note: I have asked a similar question here: Laravel: Using multiple columns for authentication but this question is referring specifically to Passport.

I have a Laravel 6 application that uses Passport.

In a typical application, the user would just specify their email, where the email is unique.

However, in my application, I have 2 columns in the User model that is used to authenticate users.

  • app_id (usually sent as a header)
  • email
  • unique(app_id, email)

So in order to login, we need to pass both an app_id and an email, along with the password. The same email could be used across different app_ids.

How would I achieve this?

1
  • same issue here.. anyone pls, help . Commented Aug 14, 2020 at 9:08

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.