Login an existing user with their secret token. Each user is assigned a token on creation, you can store it instead of a username/password combination.

Namespace: Buddy
Assembly: Buddy (in Buddy.dll) Version: 1.0.2.7 (1.0.2.7)

Syntax

C#
public IAsyncResult LoginAsync(
	Action<AuthenticatedUser, BuddyCallbackParams> callback,
	string token,
	Object state = null
)
Visual Basic
Public Function LoginAsync ( _
	callback As Action(Of AuthenticatedUser, BuddyCallbackParams), _
	token As String, _
	Optional state As Object = Nothing _
) As IAsyncResult
Visual C++
public:
IAsyncResult^ LoginAsync(
	Action<AuthenticatedUser^, BuddyCallbackParams^>^ callback, 
	String^ token, 
	Object^ state = nullptr
)
JavaScript
function LoginAsync(callback, token, state);

Parameters

callback
Type: System..::..Action<(Of <(<'AuthenticatedUser, BuddyCallbackParams>)>)>
The async callback to call on success or error. The first parameter is a the authenticated user if the login was successful.
token
Type: System..::..String
The private token of the user to login.
state (Optional)
Type: System..::..Object
An optional user defined object that will be passed to the callback.

Return Value

An IAsyncResult handle that can be used to monitor progress on this call.

See Also