0

When I develop a Meteor app, I can get user's information from third party(not oauth), so how to set current_user variable without Accounts.loginWithPassword or Accounts.loginWith[Service] methods?

Accounts.createUser only return a userid,

Msms
  • 3
  • 2

1 Answers1

0

I doubt this is even possible as something like this would let anyone with someone's userId log in to their account without their password.

kaoskeya
  • 1,071
  • 6
  • 12
  • This is not worry, the app will get information form third party. – Msms Jun 05 '15 at 03:21
  • One thing you could try is `this.setUserId(userId)` This will associate the current connection with the user. It affects the current method call and any future method calls on the connection. But this will not log the user in on the client side. – kaoskeya Jun 05 '15 at 03:23